PDA

View Full Version : gnuplot - how do I turn image horizontal?


wallg
11-08-2007, 03:31 PM
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.

wallg
11-11-2007, 10:32 PM
Is it possible to attach my example images to my post?

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

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.

kitchin
11-12-2007, 12:48 AM
Use the ... tag to show space formatting.
For images, upload it somewhere, your space, or free at imageshack, etc., and then use the [img] tag.

http://www.aota.net/forums/misc.php?do=bbcode

wallg
11-12-2007, 09:10 PM
example1.gif is when I use "set terminal postscript portrait"

http://img249.imageshack.us/img249/7315/example1sj0.gif

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

http://img266.imageshack.us/img266/3779/example2ek8.gif

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

http://img233.imageshack.us/img233/7553/example3ay1.gif

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

wallg
12-15-2007, 01:17 AM
Hello All,

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