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

 
 

bug #48434: gnuplot ignores line style specifications

Submitter:  Francesco Potortì <pot>
Submitted:  Thu 07 Jul 2016 10:18:33 AM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.2 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group Member
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.


Rik <rik5>
Group 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 Files:
   
   
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
  • -email is unavailable- added by petos (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Updated the item)
  • -email is unavailable- added by pot (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-19 petos Attached File- Added patch-for-dashed-lines.txt, #38767
    2016-07-07 rik5 Attached File- Added lines.png, #37759
        StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code