comparison scripts/plot/plotyy.m @ 10949:848f3a13b7cf

Backed out changeset 6b50fd2d4ca6
author David Bateman <dbateman@free.fr>
date Tue, 07 Sep 2010 21:44:13 +0200
parents 6b50fd2d4ca6
children c9786e03670c
comparison
equal deleted inserted replaced
10948:6b50fd2d4ca6 10949:848f3a13b7cf
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 try 198 addproperty ("__plotyy_axes__", ax(1), "data", ax);
199 addproperty ("__plotyy_axes__", ax(1), "data", ax); 199 addproperty ("__plotyy_axes__", ax(2), "data", ax);
200 catch 200
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
208 endfunction 201 endfunction
209 202
210 %!demo 203 %!demo
211 %! clf 204 %! clf
212 %! x = 0:0.1:2*pi; 205 %! x = 0:0.1:2*pi;