Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old November 8th, 2007, 01:24 PM
wallg wallg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 12 wallg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 57 m 42 sec
Reputation Power: 0
Gnuplot - how do I turn image horizontal

Using gnuplot 4.0

I set terminal to postscript in gnuplot to produce a psfile.ps file. Then use a postscript to gif utility to create a GIF image of a graph.

The orientation for the postscript image is set to landscape, but the resulting GIF image opens up vertically, and does the same when displayed in browser.

-------
| |
| |
| |
| |
| |
-------
(left side of graph starts on bottom of screen)
(text displayed up-down instead of left-right)

I tried setting the orientation to portrait, but even though the text and graph are now horizontal, the image is still vertical.

-------
| |
| |
| |
| |
| |
-------

(graph and text displays horizontal, but image)
(still vertical)

Is there a way to "turn" the image (or displayed area) so that it is horizontal?

---------------------
| |
| |
---------------------
(graph and text displays horizontal)
(image or display area horizontal)


Thanks.

Reply With Quote
  #2  
Old November 8th, 2007, 08:25 PM
Lux Perpetua Lux Perpetua is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2004
Location: San Francisco Bay
Posts: 1,416 Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 22 h 4 m 53 sec
Reputation Power: 334
I don't understand your distinction between "graph" and "image."

Reply With Quote
  #3  
Old November 8th, 2007, 10:03 PM
wallg wallg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 12 wallg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 57 m 42 sec
Reputation Power: 0
Gnuplot - how do I turn image horizontal

Sorry about the bad description. Hope this helps explain what I am seeing, and what I want to accomplish.

When I use "set terminal postscript portrait", the graph displays this way-

Title on top
Graph left to right
But graph is thin (left to right)
Taller up/down
^
|
v

When I use "set terminal postscript landscape", the graph displays this way-

Title on top
Graph left to right
But is turned 90% to the left
^
|
v

I would like for it to be displayed this way-

Title on top
Graph left to right
<--->

With this example I am using pbm instead of postscript, but I want to be able to use postscript.

Is there a way to turn/rotate or roll the graph or image so that it looks like the 3rd picture?

(I tried to include my example GIF images, but could not insert or attach to this post.)

Thanks.

Reply With Quote
  #4  
Old November 11th, 2007, 08:37 PM
wallg wallg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 12 wallg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 57 m 42 sec
Reputation Power: 0
Gnuplot - how do I turn image horizontal?

Is there a way to attach my example images to my post?

I don't really understand how the "Insert Image" works.

Reply With Quote
  #5  
Old November 12th, 2007, 07:15 PM
wallg wallg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 12 wallg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 57 m 42 sec
Reputation Power: 0
Gnuplot - how do I turn image horizontal?

example1.gif is when I use "set terminal postscript portrait"



example2.gif is when I use "set terminal postscript landscape"



example3.gif is when I use "set terminal pbm"



I would like for the postscript version to display like the pbm version (image horizontal). Is there a way to do this?

Reply With Quote
  #6  
Old November 12th, 2007, 09:37 PM
Lux Perpetua Lux Perpetua is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Feb 2004
Location: San Francisco Bay
Posts: 1,416 Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level)Lux Perpetua User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 22 h 4 m 53 sec
Reputation Power: 334
Okay, I think I see. Try
Code:
set terminal postscript eps

Reply With Quote
  #7  
Old December 14th, 2007, 11:21 PM
wallg wallg is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2007
Posts: 12 wallg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 57 m 42 sec
Reputation Power: 0
gnuplot - how do I turn image horizontal?

Hello All,

I ended up using set terminal postscript eps and epsffit to position it where I needed it on the web page.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Gnuplot - how do I turn image horizontal


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway