yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #01686
Re: Facet position
Is it possible to make different y-values from right side of the diagram?
MatPlotLib manual?
______________________________
Anton Gladkyy
2009/7/15 Anton Gladky <gladky.anton@xxxxxxxxx>
> Thank you!
>
> ______________________________
> Anton Gladkyy
>
>
> 2009/7/15 Václav Šmilauer <eudoxos@xxxxxxxx>
>
>
>> > 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 : yade-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
>> More help : https://help.launchpad.net/ListHelp
>>
>
>
Follow ups
References