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

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

[Octave-bug-tracker] [bug #49341] demo legend 14 produce error with gnup


From: Rik
Subject: [Octave-bug-tracker] [bug #49341] demo legend 14 produce error with gnuplot
Date: Sun, 16 Oct 2016 19:26:55 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #49341 (project octave):

                  Status:               Confirmed => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #9:

I tweaked the hggroup patch slightly


diff -r 078c0c4d205d scripts/plot/util/private/__gnuplot_draw_axes__.m
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Sun Oct 16 02:23:54
2016 -0500
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Sun Oct 16 12:20:34
2016 -0700
@@ -613,7 +613,7 @@ function __gnuplot_draw_axes__ (h, plot_
 
       case "line"
         if (strcmp (get (obj.parent, "type"), "hggroup"))
-          hg = get (obj.parent, 'children');
+          hg = get (obj.parent, "children");
           if (hg(1) == h_obj && ! isempty (get (obj.parent, "displayname")))
             data_idx += 1;
             is_image_data(data_idx) = false;
@@ -646,7 +646,7 @@ function __gnuplot_draw_axes__ (h, plot_
               withclause{data_idx} = sprintf ("with %s linestyle %d",
                                               errbars, sidx(1));
             else
-              # Place phantom stemseries data for legend
+              ## Place phantom stemseries data for legend
               data{data_idx} = nan (2,1);
               usingclause{data_idx} = sprintf ("record=1 using ($1):($2)");
               hgobj = get (obj.parent);
@@ -1196,9 +1196,9 @@ function __gnuplot_draw_axes__ (h, plot_
 
       case "surface"
         view_map = true;
-        tspec = "title \"\"";
+        tspec = 'title ""';
         if (! isempty (obj.displayname))
-          # Place phantom line data for approximate legend symbol
+          ## Place phantom line data for approximate legend symbol
           data_idx += 1;
           is_image_data(data_idx) = false;
           parametric(data_idx) = false;


to follow some Octave coding guidelines.

It was applied here http://hg.savannah.gnu.org/hgweb/octave/rev/5ab3c91fc4bb.

Fixed, closing report.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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