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 Mar 25 02:07:37 2013  
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Other
Status: FixedAssigned to: Lachlan Andrew <lachlan>
Originator Name: John SchneelochOriginator Email: -unavailable-
Open/Closed: ClosedRelease: dev
Operating System: Any

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Sat Feb 27 05:44:21 2016, 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 Feb 27 04:35:46 2016, 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>
Project MemberIn charge of this item.
Sat Jan 25 05:06:20 2014, 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 Jan 24 21:11:43 2014, 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 Mar 25 15:16:01 2013, 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 Mar 25 02:07:37 2013, 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 File(s):

Attached Files


Depends on the following items: None found

Items that depend on this one: None found


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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Feb 27 05:44:21 2016rik5StatusPatch Submitted=>Fixed
    Sat Feb 27 04:36:53 2016lachlanItem GroupIncorrect Result=>Other
      StatusConfirmed=>Patch Submitted
      Assigned toNone=>lachlan
    Sat Feb 27 04:35:46 2016lachlanAttached File-=>Added bug_38584_patch_without_lines.cset, #36486
    Fri Jan 24 21:11:43 2014mtmillerItem GroupSegfault, Bus Error, etc.=>Incorrect Result
      Operating SystemMac OS=>Any
    Fri Oct 11 16:58:08 2013rik5Summarysetting linestyle to "none" for fill object causes error=>setting linestyle to "none" for fill object causes error (gnuplot)
    Mon Mar 25 15:16:01 2013rik5CategoryPlotting=>Plotting with gnuplot

    Back to the top

    Powered by Savane 3.1-cleanup1