[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Crosshairs in Octave GNUPlot?

From: William Krekeler
Subject: RE: Crosshairs in Octave GNUPlot?
Date: Mon, 31 Jan 2011 14:51:58 +0000

Do you mean like turning on the grid for an axis after using the plotyy command?


x1 = 1:10; y1 = 2*x1; x2 = x1; y2 = y1+x2.^2;

figure, plotyy( x1,y1,x2,y2)

axesChildren = get(gcf, 'Children');          % get the two axes


% get and change properties

get(axesChildren(1))                                      % get properties of the first axis, change the property you want to change

set( axesChildren(1), 'XGrid', 'on' )


% other properties

XGrid, YGrid, ZGrid, XTick, YTick,...


Bill Krekeler


From: address@hidden [mailto:address@hidden On Behalf Of Jason Criss
Sent: Sunday, January 30, 2011 5:29 PM
To: address@hidden
Subject: Crosshairs in Octave GNUPlot?


Does anyone know how to add vertical and horizontal crosshairs to the cursor in a plot?  This is useful for when 2 series are plotted on the same plot, but separated along the y-axis.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]