← Back to team overview

yade-users team mailing list archive

Re: [Question #227354]: Change label and title of plots created by Yade.plot module

 

Question #227354 on Yade changed:
https://answers.launchpad.net/yade/+question/227354

    Status: Open => Answered

Bruno Chareyre proposed the following answer:
> I don't know I can access the pylab object that yade creates by this
commands, because plot.plots just returns a dictonary. Thank you

An answer is in trunk/py/plot.py, L.595.

fig=plot.currLineRefs[0].line.get_axes().get_figure()

Another possibility is:
fig=plot.plot(noShow=1) #here fig is a matplotlib figure or a list of them
fig.show()

It will not work with noShow=0 as the figures are not returned in that
case. Maybe a small bug?

Bruno

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.