Patch for EPS orientation

Here it goes again. And sorry for the delay, I was busy with other things, will catch up...
Yes, I believe it does not conflict with the savefig's landscape-vs-portrait handling. Some of the EPS viewers need this flag in order to show the plot in its original orientation (read: heads up).

In addition, I find the code in lines 1049-1053 of bakend_ps.py somewhat strange: in my understanding, landsape means that the plot's "up" direction is oriented to the left, i.e., the plot is rotated 90CCW. This has nothing to do with the plot's width and height. However, that's not my code I wouldn't like to fix that myself without knowing the original author's intent. Comments?

-- Alex

Index: lib/matplotlib/backends/backend_ps.py

···

===================================================================
RCS file: /cvsroot/matplotlib/matplotlib/lib/matplotlib/backends/backend_ps.py,v
retrieving revision 1.81
diff -r1.81 backend_ps.py
1054a1055,1056
> else:
> print >>fh, "%%Orientation: Portrait"

Hi Alex,

···

On Friday 17 February 2006 18:48, Alex Gontmakher wrote:

Here it goes again. And sorry for the delay, I was busy with other
things, will catch up...
Yes, I believe it does not conflict with the savefig's
landscape-vs-portrait handling. Some of the EPS viewers need this flag
in order to show the plot in its original orientation (read: heads up).

In addition, I find the code in lines 1049-1053 of bakend_ps.py somewhat
strange: in my understanding, landsape means that the plot's "up"
direction is oriented to the left, i.e., the plot is rotated 90CCW. This
has nothing to do with the plot's width and height. However, that's not
my code I wouldn't like to fix that myself without knowing the original
author's intent. Comments?

I'm not the original maintainer of the postscript backend, but I agree that
those lines were strange. I just committed my changes to cvs,
portrait/landscape orientation should be better supported now.

Darren