Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Is there a way to specify y axis of an axe (when multiple y axis)?

Subject: Is there a way to specify y axis of an axe (when multiple y axis)?

From: Camille Couzi

Date: 24 Aug, 2010 20:13:21

Message: 1 of 1

Hi
I am trying to plot two different kind of time series: I have a buttondownfunction and 3 subplots(sub1, sub2 and sub3). When I click on sub1, I want to plot a line in sub3 with its y axis on the left, and when I click on sub2, I want to plot a second line (on top of the first one) on sub3, but with its y axis on the right.

I don't think I can use plotyy because in that function you have to specify x1,x2,y1,y2, and in fact, when I click for the first tine on sub1 (for example), I don't have x2 and y2...

So is there a way to say to specify in the line(x,y,..) a kind of axis handle?

Thanks for your help!!

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us