changeset 22057:6f10765eca35

Use correct interpretation of alpha variable for gridlnes in gnuplot (bug #48401). * __gnuplot_draw_axes__.m: Use (1-obj.alpha) to reverse opaque/transparent definition.
author Rik <rik@octave.org>
date Wed, 06 Jul 2016 22:09:21 -0700
parents 05ad23810150
children 47f4268f8c5e
files scripts/plot/util/private/__gnuplot_draw_axes__.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m	Wed Jul 06 21:55:08 2016 -0700
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m	Wed Jul 06 22:09:21 2016 -0700
@@ -1866,7 +1866,7 @@
   if (isnumeric (linecolor))
     color = linecolor;
     if (isfield (obj, "alpha"))
-      alphastr = sprintf ("%02x", round (255*obj.alpha));
+      alphastr = sprintf ("%02x", round (255*(1-obj.alpha)));
     else
       alphastr = "";
     endif