hline & plotyy

16 views
Skip to first unread message

Nic868

unread,
Jan 21, 2014, 4:18:27 PM1/21/14
to iris-t...@googlegroups.com
Hi,

My understanding might be incorrect, but I believe the following code should add an horizontal line on the left axis, not the right axis.

>> [h_fig,h_lhs,h_rhs,h_rng] = plotyy(tseries(qq(2010,1),rand(10,1)),100*tseries(qq(2010,1),rand(10,1)));
>> hline(h_fig(1),0.4)

To confirm whether I had the correct handle, I tried "get(h_fig(1),'YTickLabel')" versus "get(h_fig(2),'YTickLabel')". I believe I have the correct handle.

Thank you for any insight on this,

Nicholas
Reply all
Reply to author
Forward
0 new messages