changeset 29671:df0f97c4fb18

Add "FaceColor" property to contour hggroups for Matlab compatibility (bug #60513). * __contour__.m: Call addproperty() to add "FaceColor" property to contour group.
author Rik <rik@octave.org>
date Fri, 14 May 2021 15:19:16 -0700
parents d3a02b27fa6a
children 0181e1e5ec67
files scripts/plot/draw/private/__contour__.m
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/private/__contour__.m	Fri May 14 14:43:09 2021 -0700
+++ b/scripts/plot/draw/private/__contour__.m	Fri May 14 15:19:16 2021 -0700
@@ -197,6 +197,9 @@
   addproperty ("linestyle", hg, "linelinestyle", linespec.linestyle);
   addproperty ("linewidth", hg, "linelinewidth", 0.5);
 
+  ## Matlab property just for compatibility (bug #60513).
+  addproperty ("facecolor", hg, "patchfacecolor", "none");
+
   ## Matlab property, although Octave does not implement it.
   addproperty ("hittestarea", hg, "radio", "on|{off}", "off");