← Back to team overview

yade-users team mailing list archive

Re: Facet position

 

> One more small question. If I want 2 diagrams to be appeared:
>        yade.plot.plots={'t':('Z_pr',),'F':('t')}
> It works,
> 
> but when I change F and t:
>       yade.plot.plots={'t':('Z_pr',),'t':('F')}
> I receive only 't':('F') diagram, first one does not appears...

That's normal,  python dicts have only one value per key; try this:

 a={'a':1,'a':2}
 print a # {'a': 2}

since 'a':1 was overwritten. What you have to do is to create
differently-named t axis:

yade.plot.plots={'t':('Z_pr',),'t_':('F',)}

(you can name it as you want, I just appended the "_" (and do not forget
the comma after 'F' again)) and in addPlotData, you will have

 't':O.time,'t_':O.time,...

HTH, Vaclav





Follow ups

References