bugGNU Octave - Bugs: bug #48434, gnuplot ignores line style...

 
 

bug #48434: gnuplot ignores line style specifications

Submitted by:  Francesco Potortì <pot>
Submitted on:  Thu 07 Jul 2016 10:18:33 AM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Regression
Status: FixedAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.0.2Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Wed 19 Oct 2016 06:54:34 PM UTC, comment #5:

For us stuck with 4.0.x version as well as gnuplot5 like in Cygwin the following back-port changes fix the problem for me and is based on the newer _gnuplot_draw_axes_.m file which in my 4.0.1 version is called _go_draw_axes_.m.

The change is to import the new gnuplot_linestyletype() function and call it from two places. Since I do not know how to detect if using gnuplot4 or 5 (actually feature "dashtype" or not) it is hard coded to assume gnuplot5.

See attached patch file patch-for-dashed-lines.txt.

PS. In addition to this you may also want to change the function
create_spacingspec() in this file to fix legend 2.5 line see bug #46496.

Petter <petos>
Thu 07 Jul 2016 04:40:37 PM UTC, comment #4:

Following Mike's lead, try using gnuplot 4.X with octave 4.0.X and gnuplot 5.X with octave 4.2.X.

Rik <rik5>
Project Administrator
Thu 07 Jul 2016 04:30:32 PM UTC, comment #3:

The only regression I can see is that Octave 4.0.x fails to print dotted line in the file output with gnuplot version 5. But gnuplot version 5 was a fairly large departure from version 4, and some compatibility things may have been misssed. If you use gnuplot version 4 everything works in 4.0.x as in previous versions of Octave.

The default branch OTOH supports gnuplot version 5 much better, but gnuplot version 4 much worse.

I wouldn't call this a regression since the same features worked with the same older version of gnuplot.

Mike Miller <mtmiller>
Project Administrator
Thu 07 Jul 2016 04:17:57 PM UTC, comment #2:

Thank you.

Since this is a regression, and a bad one too, can you suggest a workaround while waiting for 4.2.0?

Can one just patch plot.m or something like that?

Francesco Potortì <pot>
Thu 07 Jul 2016 03:48:30 PM UTC, comment #1:

This has been fixed on the development branch and will be a part of the 4.2.0 release.

See the attached lines.png which is a snapshot of 'demo line' showing all linetypes working correctly in gnuplot.

(file #37759)

Rik <rik5>
Project Administrator
Thu 07 Jul 2016 10:18:33 AM UTC, original submission:

I plot a single dotted line. It works as expected with fltk, but the line is solid with gnuplot. The same happens if using the 'linestyle' option.

This happens on Debian testing.

~$ octave --no-gui --norc --quiet

>> plot(1:2, ':') # the plot has a dotted line
>> close all
>> graphics_toolkit gnuplot
>> plot(1:2, ':') # the plot has a solid line
>> gnuplot_binary

ans = gnuplot

>> version

ans = 4.0.2

>> quit


~$ gnuplot --version
gnuplot 5.0 patchlevel 3

Francesco Potortì <pot>

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #38767:  patch-for-dashed-lines.txt added by petos (3KiB - text/plain - For dashed lines using octave 4.0.x and gnuplot5)
file #37759:  lines.png added by rik5 (22KiB - image/png)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by petos (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by rik5 (Updated the item)
  • -unavailable- added by pot (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 19 Oct 2016 06:56:32 PM UTCpetosAttached File-=>Added patch-for-dashed-lines.txt, #38767
    Thu 07 Jul 2016 03:48:30 PM UTCrik5Attached File-=>Added lines.png, #37759
      StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1