changeset 26322:74368b4f9d8c stable

polar.m: Use 'xcolor' property from Cartesian axes to color polar axes (bug #55327). * polar.m: Get the "xcolor" property from the Cartesian axes object and use it for the "color" property of the line objects used to draw the polar axes.
author Rik <rik@octave.org>
date Sat, 29 Dec 2018 23:07:46 -0800
parents 92c88ff62055
children 3c2264556abc
files scripts/plot/draw/polar.m
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/draw/polar.m	Sat Dec 29 22:36:11 2018 -0800
+++ b/scripts/plot/draw/polar.m	Sat Dec 29 23:07:46 2018 -0800
@@ -334,7 +334,8 @@
   endif
 
   lprops = {"linestyle", get(hax, "gridlinestyle"), ...
-            "linewidth", get(hax, "linewidth")};
+            "linewidth", get(hax, "linewidth"), ...
+            "color", get(hax, "xcolor")};
   ## "fontunits" should be first because it affects "fontsize" property.
   tprops(1:2:12) = {"fontunits", "fontangle", "fontname", "fontsize", ...
                     "fontweight", "ticklabelinterpreter"};