bugGNU Octave - Bugs: bug #48198, With recent 4.1.0+ and gnuplot...

 
 

bug #48198: With recent 4.1.0+ and gnuplot backend all symbol or dot plots will also include a line.

Submitted by:  Dmitri A. Sergatskov <dasergatskov>
Submitted on:  Fri 10 Jun 2016 09:01:25 PM UTC  
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Dmtri A. Sergatskov Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

( Jump to the original submission)

Sat 11 Jun 2016 07:50:05 AM UTC, comment #7: 

Sorry about that folks.  I misunderstood what "lt" represents.  Near the end of June I will look at this issue again with regards to gnuplot 4.4.  Also, I'm pretty sure that the "stuck lines" problem in which the characteristics of a line resembles that of a previous plot, e.g.:

demo polar
demo waterfall

is related to this.  This hunk of code:

   if (__gnuplot_has_feature__ ("linetype"))
     scommand = "linetype";
   else
-    scommand = "line style";
+    scommand = "style line";
   endif
   fprintf (plot_stream, "set %s %d default;\n", scommand, idx);
   fprintf (plot_stream, "set %s %d", scommand, idx);

is assigned a line type to indeces, e.g.,

set linetype 3 ...

However, the difference betwen linetype and "style line" is that linetype is persistent.  Those are not reset with the "reset" command.  The way that Octave is using gnuplot, where it essential resets and then redefines all variables with a plot, might work better using just "style line" if possible.  Maybe that would stay 4.4 compatible that way too.  Again, I look at this in a couple weeks.

Dan Sebald <sebald>
Sat 11 Jun 2016 12:02:55 AM UTC, comment #6: 

this is now fixed for me.
hg id = 09583900661b

Doug Stewart <dastew>
Fri 10 Jun 2016 10:31:42 PM UTC, comment #5: 

I think it is not unreasonable to require gnuplot 5+ for
octave 4.1.+ (gnuplot 5.0.1 was released in july 2015).

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Fri 10 Jun 2016 10:27:47 PM UTC, comment #4: 

I reversed part of cset 21809 so that a line is not always drawn.  See http://hg.savannah.gnu.org/hgweb/octave/rev/09583900661b.

Rik <rik5>
Project Administrator
Fri 10 Jun 2016 10:16:17 PM UTC, comment #3: 

The cset that introduced this is 21809:b2f1f4cf1389.

changeset:   21809:b2f1f4cf1389
user:        Daniel J Sebald <daniel.sebald@ieee.org>
date:        Mon May 30 02:42:43 2016 -0500
summary:     Correct linestyle property in toolkit for old versions of gnuplot (bug #48033)

diff -r a4c744194bbb -r b2f1f4cf1389 scripts/plot/util/private/__gnuplot_draw_axes__.m
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m Thu Jun 02 11:06:56 2016 -0500
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m Mon May 30 02:42:43 2016 -0500
@@ -918,11 +918,7 @@ function __gnuplot_draw_axes__ (h, plot_
            endif

            sidx = 1;
-           if (isempty (lt))
-             style = "";
-           else
-             style = "lines";
-           endif
+           style = "lines";
            tmpwith = {};

            facesame = true;
@@ -1817,7 +1813,7 @@ function [style, ltidx] = do_linestyle_c
   if (__gnuplot_has_feature__ ("linetype"))
     scommand = "linetype";
   else
-    scommand = "line style";
+    scommand = "style line";
   endif
   fprintf (plot_stream, "set %s %d default;\n", scommand, idx);
   fprintf (plot_stream, "set %s %d", scommand, idx);
@@ -1852,11 +1848,7 @@ function [style, ltidx] = do_linestyle_c

   sidx = 1;
   if (isempty (errbars))
-    if (isempty (lt))
-      style{sidx} = "";
-    else
-      style{sidx} = "lines";
-    endif
+    style{sidx} = "lines";
     ltidx(sidx) = idx;

     facesame = true;

Rik <rik5>
Project Administrator
Fri 10 Jun 2016 09:45:28 PM UTC, comment #2: 

x = 2 * pi * rand (1, 200);
y = sin (x) + sin (2 * x) + 0.2 * randn (size (x));

scatter(x,y) does not work.
scatter(x,y,[]) does not work
scatter(x,y,[],[]) does not work
scatter(x,y,[],x) does work
scatter(x,y,[],y) does work
scatter (x, y, [], rand(200,1))
scatter (x, y, [], 1.25*ones(200,1))

x = randn (100, 1);
y = randn (100, 1);
scatter (x, y) works

Thomas Dean <tomdean>
Fri 10 Jun 2016 09:38:41 PM UTC, comment #1: 

Confirmed.  There has been a lot of work recently on the gnuplot backend.  I'm sure this is a temporary hiccup.  I'm adding Dan Sebald to the CC list since he probably knows why this is happening.

Rik <rik5>
Project Administrator
Fri 10 Jun 2016 09:01:25 PM UTC, original submission:  

With recent 4.1.0+ and gnuplot backend all simbol or dot plots will
also include a line.
I.e. plot (x,y, ".") looks the same as plot (x,y,"-.")

graphics_toolkit gnuplot
x=y=linspace(1,10,10);
plot (x,y, "o")
plot (x,y, "-o")
plot (x,y, "o")
plot (x,y, ".")

This works fine with octave 4.0.2 (any backend) and with 4.1.0+
with GL backends.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by avinoam (Updated the item)
  • -email is unavailable- added by sebald (Posted a comment)
  • -email is unavailable- added by dastew (Posted a comment)
  • -email is unavailable- added by tomdean (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by rik5
  • -email is unavailable- added by dasergatskov (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-07-06 avinoam SummaryWith recent 4.1.0+ and gnuplot backend all simbol or dot plots will also include a line. => With recent 4.1.0+ and gnuplot backend all symbol or dot plots will also include a line.
    2016-06-10 rik5 StatusConfirmed => Fixed
        Open/ClosedOpen => Closed
    2016-06-10 rik5 StatusNone => Confirmed
        Carbon-Copy- => Added sebald

    Back to the top


    Powered by Savane 3.5