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