comparison scripts/plot/plotyy.m @ 10950:c9786e03670c

Don't create __plotyy_axes__ properties in plotyy if they exist (Bug #30977)
author David Bateman <dbateman@free.fr>
date Tue, 07 Sep 2010 21:45:38 +0200
parents 848f3a13b7cf
children fe3c3dfc07eb
comparison
equal deleted inserted replaced
10949:848f3a13b7cf 10950:c9786e03670c
193 ## Tag the plotyy axes, so we can use that information 193 ## Tag the plotyy axes, so we can use that information
194 ## not to mirror the y axis tick marks 194 ## not to mirror the y axis tick marks
195 set (ax, "tag", "plotyy") 195 set (ax, "tag", "plotyy")
196 196
197 ## Store the axes handles for the sister axes. 197 ## Store the axes handles for the sister axes.
198 addproperty ("__plotyy_axes__", ax(1), "data", ax); 198 try
199 addproperty ("__plotyy_axes__", ax(2), "data", ax); 199 addproperty ("__plotyy_axes__", ax(1), "data", ax);
200 200 catch
201 set (ax(1), "__plotyy_axes__", ax);
202 end_try_catch
203 try
204 addproperty ("__plotyy_axes__", ax(2), "data", ax);
205 catch
206 set (ax(2), "__plotyy_axes__", ax);
207 end_try_catch
201 endfunction 208 endfunction
202 209
203 %!demo 210 %!demo
204 %! clf 211 %! clf
205 %! x = 0:0.1:2*pi; 212 %! x = 0:0.1:2*pi;