octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47974] Visual differences between gnuplot and


From: Dan Sebald
Subject: [Octave-bug-tracker] [bug #47974] Visual differences between gnuplot and OpenGL toolkits
Date: Thu, 2 Jun 2016 03:54:53 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:42.0) Gecko/20100101 Firefox/42.0

Follow-up Comment #47, bug #47974 (project octave):

Oh, keep the patch example here for now.  Here is a fix for the data error:


diff --git a/scripts/plot/util/private/__gnuplot_draw_axes__.m
b/scripts/plot/ut
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m
@@ -1035,7 +1035,7 @@ function __gnuplot_draw_axes__ (h, plot_
              if (ischar (color))
                if (! isnan (xcol) && ! isnan (ycol) && ! isnan (zcol))
                  data{data_idx} = [[xcol; xcol(1)], [ycol; ycol(1)], ...
-                                   [zcol; zcol(1)], [ccol; ccol(1)]]';
+                                   [zcol; zcol(1)], [ccol; ccol(1,:)]]';
                else
                  data{data_idx} = [xcol, ycol, zcol, ccol]';
                endif
@@ -1053,7 +1053,7 @@ function __gnuplot_draw_axes__ (h, plot_
              if (ischar (color))
                if (! isnan (xcol) && ! isnan (ycol))
                  data{data_idx} = [[xcol; xcol(1)], [ycol; ycol(1)], ...
-                                   [ccol; ccol(1)]]';
+                                   [ccol; ccol(1,:)]]';
                else
                  data{data_idx} = [xcol, ycol, ccol]';
                endif


but it doesn't produce a correct result.  I suspect it is because the using
clause is defined as


               usingclause{data_idx} = sprintf ("record=%d using
($1):($2):($3)", columns (data{data_idx}));


which isn't enough fields for x, y, cr, cg, cb.  I will take a look at this
later.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47974>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]