Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gnuplot - how do I turn image so it displays horizontal-left to right?

Status
Not open for further replies.

wallg

Technical User
Nov 11, 2007
5
US
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?


Thanks.
 
Additional information - I am using gnuplot in a CGI script and generating the image on the fly for a web page.
 
example1.gif is when I use "set terminal postscript portrait"

example1sj0.gif


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

example2ek8.gif


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

example3ay1.gif


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

just switch the axes of the data, no?

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
No, I do want vertical bars, but I want the image itself to "lay" horizontally. That is, I want the image to look like example 3, where the width of the image is greater than the heighth.

I found that I can use "set terminal postscript eps" to turn it, but the image is coming out small now. Now I am trying to figure out how to make the image larger, if that is possible.

Thanks, I will take a look at the axes.
 
in postscript there is an option to scale an object, I can't remember it just at present ...

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Hello All,

I ended up using set terminal postscript eps and epsffit to position it where I needed it on the web page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top