bugGNU Octave - Bugs: bug #38584, setting linestyle to...


bug #38584: setting linestyle to "none" for fill object causes error (gnuplot)

Submitted by:  None
Submitted on:  Mon 25 Mar 2013 02:07:37 AM UTC  
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Other
Status:  Fixed Assigned to:  Lachlan Andrew <lachlan>
Originator Name:  John Schneeloch Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  dev
Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

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


Sat 27 Feb 2016 05:44:21 AM UTC, comment #5:

@Lachlan: Thanks for re-discovering this bug report. I applied your patch here (http://hg.savannah.gnu.org/hgweb/octave/rev/e789571034bc). Another bug bites the dust!

Rik <rik5>
Project Administrator
Sat 27 Feb 2016 04:35:46 AM UTC, comment #4:

This patch to _gnuplot_draw_axes_.m seems to fix the problem. It doesn't remove the entire second part, but removes the offending "with <omitted> linewidth ..." clause.

There are many paths to set the "with..." clause, and there was a catch-all saying "if it isn't set, use with <style>...", without checking that <style> was not empty. The patch makes it check.

Rik, thanks for saying it was in gnuplot_drawnow -- that really helps those of us not as familiar with where to start looking.

(file #36486)

Lachlan Andrew <lachlan>In charge of this item.
Sat 25 Jan 2014 05:06:20 AM UTC, comment #3:

Fill is just a front end for the patch function. It seems that _gnuplot_drawnow_ does not properly handle patches where the linestyle is "none". Here is the same example done with patch.

I don't use the gnuplot backend anymore but it seems like the first part of the intstructions are correct to draw an object with color #ff0000 (red). It seems to me like the entire second part of the plot command beginning after the ',' could be removed.

Rik <rik5>
Project Administrator
Fri 24 Jan 2014 09:11:43 PM UTC, comment #2:

Still present on the development version of Octave. However, I don't get a crash or freeze. Gnuplot prints the error shown in the original report and control is returned to the Octave interpreter. However, this might behave differently on MacOS, the OP's system.

Mike Miller <mtmiller>
Project Administrator
Mon 25 Mar 2013 03:16:01 PM UTC, comment #1:

Confirmed on a recent development version (3/24/13) as well. This only affects gnuplot. The FLTK toolkit plots this shape without problem.

Rik <rik5>
Project Administrator
Mon 25 Mar 2013 02:07:37 AM UTC, original submission:

The following code

results in the following error

and then it freezes until I press ctrl+c. Setting linestyle to other options (e.g., ":") works correctly, and setting linestyle to "none" for ordinary plots (e.g., h=plot(1:10); set(h,"linestyle","none")) also works as expected. I'm not sure why it doesn't work in this instance.

I'm using Octave 3.6.4 with Mac OS X 10.7.5. Here's what I get with the "ver" command:



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

Attach Files:

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by lachlan (Updated the item)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by None (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 12 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-02-27 rik5 StatusPatch Submitted => Fixed
        Open/ClosedOpen => Closed
    2016-02-27 lachlan Item GroupIncorrect Result => Other
        StatusConfirmed => Patch Submitted
        Assigned toNone => lachlan
    2016-02-27 lachlan Attached File- => Added bug_38584_patch_without_lines.cset, #36486
    2014-01-24 mtmiller Item GroupSegfault, Bus Error, etc. => Incorrect Result
        Release3.6.4 => dev
        Operating SystemMac OS => Any
    2013-10-11 rik5 Summarysetting linestyle to "none" for fill object causes error => setting linestyle to "none" for fill object causes error (gnuplot)
    2013-03-25 rik5 CategoryPlotting => Plotting with gnuplot
        StatusNone => Confirmed

    Back to the top

    Powered by Savane 3.4