diff scripts/plot/private/__bar__.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 cc9befe5d271
children
line wrap: on
line diff
--- a/scripts/plot/private/__bar__.m	Tue Oct 01 13:50:08 2013 -0700
+++ b/scripts/plot/private/__bar__.m	Tue Oct 01 14:09:11 2013 -0700
@@ -319,6 +319,10 @@
 
     addproperty ("bargroup", hg, "data");
     set (hglist, "bargroup", hglist);
+
+    ## Matlab property, although Octave does not implement it.
+    addproperty ("hittestarea", hg, "radio", "on|{off}", "off");
+
     if (! isempty (args))
       set (hg, args{:});
     endif