SourceForge logo
SourceForge logo
Menu

[matplotlib-devel] Re: [Matplotlib-users] Can the postscript backend be persuaded to do landscape instead of portrait?

Attached is a new version of backend_ps.py with two new functions,
landscape() and portrait().
Someone who actually understands post-script should check these fixes
out -- I know next to nothing about it, but the fixes seem to do the
trick, although I'm sure there is some other incantation I'm supposed to
put in the postscript so that viewers realise it is landscape and show
it that way.
Also attached is a new version of axis.py with a very minor mod to
format_tickval that ensures that the plot doesn't end up with labels
like: 199999999 in the case where the tickloc is just a shade under a
whole number.
John
On Tue, 2004年02月10日 at 15:05, John Hunter wrote: 
> >>>>> "John" == John Gill <jn...@eu...> writes:
> 
> John> I have some plots I'd like to print out and they would make
> John> better use of the paper if they were done landscape.
> 
> John> Can the postscript backend do this?
> 
> Hi John,
> 
> I haven't had time to take a close look at this. My initial
> suggestions is to experiment with the paper size
> 
> import matplotlib
> matplotlib.use('PS')
> import matplotlib.backends.backend_ps as backend_ps
> backend_ps.defaultPaperSize = 11,8.5 # default is 8.5, 11
> 
> You may also have to specify a landscape portrait at print time, or
> rotate it.
> 
> I'll take a closer look later.
> 
> JDH
> 

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /