Hi Teemu,

Sure, why not? It works like in the examples provided with matplotlib.
For Example:
        
        import matplotlib
        matplotlib.use('Agg')
        import pylab
        
        pylab.plot(list1,list2,'k-')
        pylab.title("some title")
        pylab.xlabel('some unit label')
        pylab.ylabel('some different unit label')
        
        pylab.savefig("filename.ps")

Note though, that you need to set matplotlib.use under such 
circumstances to 'Agg', for otherwise matplotlib will complain when 
importing pylab that you (as I presume) don't have gtk, which is the 
default backend. You can use the rc-parameterfile as well and don't 
have to change these settings in every script.

Hope I could help.

Cheers,
Christian

On 2 Sep 2005, at 15:41, Teemu Rinne wrote:

> Hi,
>
> Can the vector based backends (PS or SVG) be used on OS X? If so, could
> someone provide examples.
>
> I am using the binary package (Panther) from pythonmac
>
>
> --
> Teemu Rinne
> Dept Psych
> Univ Helsinki
> _______________________________________________
> Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to