From: Brandon Sutherland on
I have a single set of data plotted on a graph with a single y-axis.

I want to add a second y-axis with a scale and a label to this graph without doing anything else to the data/graph. I can't seem to figure out how to do this. I can use plotyy if I had two data sets that wanted to be on separate axes but here I just have one.

Thanks
From: Walter Roberson on
Brandon Sutherland wrote:
> I have a single set of data plotted on a graph with a single y-axis.
> I want to add a second y-axis with a scale and a label to this graph
> without doing anything else to the data/graph. I can't seem to figure
> out how to do this. I can use plotyy if I had two data sets that wanted
> to be on separate axes but here I just have one.

You could use plotyy to plot a line that has the appropriate range to get the
right limits and tick marks for your second scale, and then findobj() the
child of the second axis with type 'plot' and set that child's Visible
property off.

Or possibly the 'plt' File Exchange contribution would have a feature that is
more directly useful for you.