[SciPy-user] xplt.plot --> eps file

Travis Oliphant oliphant at ee.byu.edu
Wed Aug 20 23:49:19 EDT 2003


Nils Wagner wrote:
> Hi all,
> 
> is it possible to redirect the output of xplt.plot into an eps-file ?
> A small example would be appreciated.

If you never want to open a display then you do this:

xplt.window(display='',hcp='somefile.ps',legends=0)  # must end in .ps

# plotting commands here
# e.g. xplt.plot(rand(100))

xplt.hcp()
xplt.hcp_finish()

# The file is now somefile.ps you can rename it to somefile.eps if you 3 
# wish.


If you want to see the results first then plot normally and
use xplt.eps('somefile') to get the .eps file





More information about the SciPy-User mailing list