We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Good afternoon,
After developing an interface and a set of plots, I now need to plot a graph with two vertical axis, one at right and the other at left. Basically, points with one x and two y. I'm using the grafica library. My thought was to build two plots, each with the same x and two different sets of y values. I was thinking of drawing the plots on top of each other and enabling the right axis on one of them. Unfortunately, I've only been able to display the vertical line of the axis, not the values of it. I've looked into the GAxis and GPlot classes. Both mention the right axis but the GAxis seems to address its representation. I've noticed, tough, that the GAxis class refers to the PApplet itselft...I'm puzzled and can't seem to figure out the solution to my problem. Can someone help?
Thank you in advance!
Answers
I suggest you send a PM to the library author @jagracar as he is the one most likely have the knowledge to help.
Hi PetePT and quark,
I just made this example to show how you can have two different y axes in your plot. It's basically using your trick.
Let me know if that solves your problem :)
Thank you for using the library! javier