← Back to team overview

yade-users team mailing list archive

Re: save python figure

 

2010/7/22 Václav Šmilauer <eudoxos@xxxxxxxx>

> > utils.plotDirections();
> > yade.plot.plot(noShow=True).savefig('/home/chia/Desktop/try.pdf')
> Oh, sorry, I missed that you needed utils.plotDirections (which in fact
> predates yade.plot quite a bit). I added the noShow option in the last
> commit, so you should be able to do
>
> utils.plotDirections(noShow=True).savefig('/tmp/file.pdf')
>
In fact the problem was pylab.show. Thxs! Chia

>
> HTH, v.
>
>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> More help   : https://help.launchpad.net/ListHelp
>

References