I am trying to plot some grd file in Cartesian coordinates. The image is wider than height. I used grdimage and set PS_PAGE_ORIENTATION to landscape. Then I used psconvert to convert the .ps file to .jpg file. I am using Mac and GMT5. The issue is that even though the figure orientation is correct relative to the page, the entire figure is always in portrait orientation when I open it in Preview. I can rotate it clockwise for 90 degrees to make it right. But I plan to make many images and make an animation. It will take too much time to rotate every image. Any suggestion?
Apart from the very obvious: If making animations you will save tons of time and frustration by using movie (and events) in GMT 6. I make a lot of movies (as do David and Bridget). You can check out many at the GMT Youtube site.
If you enjoy the suffering of making movies the old way then consider that PS_PAGE_ORIENTATION really is a legacy from printing on page-size printers and we had to rotate the plot 90 degrees for longer plots. That has no relevancy to making raster images so you (1) stick with portrait and (2) set the PS_MEDIA to whatever size and shape you want, such as a landscape-shaped US letter.
But if you are not looking for lots of extra work then we recommend you check out movie.
Thanks. I will try GMT6 at some point but probably not now. How do I set a landscape-shaped US letter in GMT5?
I tried:
gmt gmtset PS_MEDIA halfletter 612 396
also
gmt gmtset PS_MEDIA halfletter 612x396
In both cases, I got syntax error.
Probably
gmt set PS_MEDIA 792px612p
Thanks. It worked.