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

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

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.

Tag Activity for This Thread
Tag Applied By Date/Time
buttondownfcn Camille Couzi 24 Aug, 2010 16:14:06
axes Camille Couzi 24 Aug, 2010 16:14:06
plotyy Camille Couzi 24 Aug, 2010 16:14:06
axis Camille Couzi 24 Aug, 2010 16:14:05
rssFeed for this Thread

Contact us