← Back to team overview

yade-users team mailing list archive

[Question #155710]: Default subPlots=True prevents graphs plotting (?)

 

New question #155710 on Yade:
https://answers.launchpad.net/yade/+question/155710

Hi all,

Yesterday was my first day with Yade, and so far so good - thanks for all your hard work! I am running with the "snapshots" package on ubuntu 11.04. I'm currently working through the tutorial in Yade.pdf and noticed that if I set up a single, simple plot, e.g.

plot.plots={'t':('coordNum',None,'Ek')}

and store simulation data with addData, e.g.

addData(t=O.time,Ek=utils.kineticEnergy(),coordNum=utils.avgNumInteractions())

I get a problem when trying to view with

plot.plot()     or by hitting F8

In this case I get an empty matplotlib window with no content, and nothing is plotted or refreshed.

However, if I specify

plot.plot(subPlots=False)

then everything works as expected.

I just wanted to know if this was normal behaviour? It took me quite some time and head scratching to figure out what was going on. My matplotlib install is using the default TkAgg backend.

Thanks! Mark




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