comparison scripts/plot/private/__stem__.m @ 17527:76614e624818

Add "HitTestArea" property to certain hggroups for Matlab compatibility * scripts/plot/area.m, scripts/plot/private/__bar__.m, scripts/plot/private/__contour__.m, scripts/plot/private/__errplot__.m, scripts/plot/private/__quiver__.m, scripts/plot/private/__scatter__.m, scripts/plot/private/__stem__.m, scripts/plot/stairs.m: Add "HitTestArea" property for Matlab compatibility. Octave doesn't do anything with the property though.
author Rik <rik@octave.org>
date Tue, 01 Oct 2013 14:09:11 -0700
parents 177147bf7b55
children
comparison
equal deleted inserted replaced
17526:4f1dd8a980df 17527:76614e624818
141 141
142 addlistener (hg, "xdata", @update_data); 142 addlistener (hg, "xdata", @update_data);
143 addlistener (hg, "ydata", @update_data); 143 addlistener (hg, "ydata", @update_data);
144 addlistener (hg, "zdata", @update_data); 144 addlistener (hg, "zdata", @update_data);
145 145
146 ## Matlab property, although Octave does not implement it.
147 addproperty ("hittestarea", hg, "radio", "on|{off}", "off");
148
146 if (! isempty (args)) 149 if (! isempty (args))
147 set (hg, args{:}); 150 set (hg, args{:});
148 endif 151 endif
149 if (i == 1 && ! isempty (h_baseline)) 152 if (i == 1 && ! isempty (h_baseline))
150 set (h_baseline, "parent", get (hg, "parent")); 153 set (h_baseline, "parent", get (hg, "parent"));