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:
Datacursor on two superimposed axes: it only catches points of line on the top-axes!!!

Subject: Datacursor on two superimposed axes: it only catches points of line on the top-axes!!!

From: Camille Couzi

Date: 2 Nov, 2010 12:48:04

Message: 1 of 1

Hi matlabers!
I am having a little problem with the datacursor: I am working with two superimposed axes, where I plot two sort of data (idependent, I have chose this way to plot it because it was impossible with plotyy and other functions). So I have two axes:
axe1=(h.fig,'position',[.13 .05 .55 .2]);
axe2=(h.fig,'position',get(axe1,'position'),'YAxisLocation','right','Color','none','xtick',[]);
and then I plot lines on this two axes.

When I click on datacursor to get information of the points in this two axes, the datacursor only catches the points of the axes2, but not the axes1, because it is under the axes2. The problem is that I would need the datacursor to work on both axes...
What can I do?

Thanks in advance for your help

Camille.

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