comparison scripts/plot/plotyy.m @ 11198:9f080d23396f

Fix multi-parented legends with the gnuplot backend (fixes #30461 and #31522)
author David Bateman <dbateman@free.fr>
date Sun, 07 Nov 2010 22:35:40 +0100
parents a3cb42b394eb
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
11197:836427db633b 11198:9f080d23396f
191 addlistener (ax(2), "plotboxaspectratiomode", {@update_position, ax(1)}); 191 addlistener (ax(2), "plotboxaspectratiomode", {@update_position, ax(1)});
192 192
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
197 ## Cross-reference one axis to the other in the userdata
198 set (ax(1), "userdata", ax(2));
199 set (ax(2), "userdata", ax(1));
196 200
197 ## Store the axes handles for the sister axes. 201 ## Store the axes handles for the sister axes.
198 try 202 try
199 addproperty ("__plotyy_axes__", ax(1), "data", ax); 203 addproperty ("__plotyy_axes__", ax(1), "data", ax);
200 catch 204 catch