← Back to team overview

yade-users team mailing list archive

Re: [Question #272173]: How to plot with 2 y axes?

 

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

Jan Stránský proposed the following answer:
Hi Behzad,

see [1]. I aggree that the documentation is not very helpful on this point,
please open a bug not to forget to improve it.

####################
from yade import plot
plot.data = { 'x': [1,2,3], 'y1': [10,20,30], 'y2': [100,200,150] }
plot.plots = { 'x': ('y1' ,None, 'y2') } # The middle None does the trick
plot.plot()
####################

cheers
Jan

[1] https://yade-dem.org/doc/user.html#plotting-variables


2015-10-07 19:12 GMT+02:00 behzad
<question272173@xxxxxxxxxxxxxxxxxxxxx>:

> New question #272173 on Yade:
> https://answers.launchpad.net/yade/+question/272173
>
>
> Hi guys,
>
> I was wondering if we can have a plot with 2 y axes at left and right so
> we can plot two different parameters against time on the same plot.
>
> Is there any one who did this before?
>
> Cheers,
> Behzad
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.