Is it possible to make different y-values from right side of the diagram? MatPlotLib manual?
______________________________ Anton Gladkyy 2009/7/15 Anton Gladky <[email protected]> > Thank you! > > ______________________________ > Anton Gladkyy > > > 2009/7/15 Václav Šmilauer <[email protected]> > > >> > 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 >> >> >> >> _______________________________________________ >> 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
_______________________________________________ yade-users mailing list [email protected] https://lists.berlios.de/mailman/listinfo/yade-users
