So if I type somewhere in the code

utils.plotDirections();
yade.plot.plot(noShow=True).savefig('/home/chia/Desktop/try.pdf')

should work? In this case it does not (the figure is showed on the screen
and in the pdf file nothing appears). For sure I am doing it wrongly. The
point is that the function utils.plotDirections() always shows the figure
and I need to press start again to go on. What I would like is to avoid
displaying this figure and simply save it. Thxs, Chia

2010/7/22 Václav Šmilauer <[email protected]>

> > pylab.gcf().savefig('/home/chia/Desktop/directions.png')
> you can also use the noShow parameter of plot.plot, which then returns
> the figure: See
> https://yade-dem.org/sphinx/yade.plot.html#yade.plot.plot
>
> Cheers, v.
>
>
>
> _______________________________________________
> Mailing list: 
> https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> Post to     : [email protected]
> Unsubscribe : 
> https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> More help   : https://help.launchpad.net/ListHelp
>
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp

Reply via email to