Mercurial > octave
changeset 26549:58e7a737c82b
polar.m: Use light grey color for axes lines for Matlab compatibility (bug #55841).
* polar.m: When setting color of polar axes lines, multiply by de-saturation
constant 5.8167. For default values of Cartesian axes color
([0.15, 0.15, 0.15]) this will result in light grey ([0.8725 0.8725 0.8725])
which matches Matlab.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 15 Jan 2019 15:34:53 -0800 |
parents | 58ad6355ece8 |
children | acefc0bca74a |
files | scripts/plot/draw/polar.m |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/draw/polar.m Tue Jan 15 12:58:41 2019 -0800 +++ b/scripts/plot/draw/polar.m Tue Jan 15 15:34:53 2019 -0800 @@ -335,7 +335,7 @@ lprops = {"linestyle", get(hax, "gridlinestyle"), ... "linewidth", get(hax, "linewidth"), ... - "color", get(hax, "xcolor")}; + "color", min(5.8167 * get(hax, "xcolor"), 1)}; ## "fontunits" should be first because it affects "fontsize" property. tprops(1:2:12) = {"fontunits", "fontangle", "fontname", "fontsize", ... "fontweight", "ticklabelinterpreter"};