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 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 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>
Project MemberIn 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 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 27 Feb 2016 05:44:21 AM UTCrik5StatusPatch Submitted=>Fixed
    Sat 27 Feb 2016 04:36:53 AM UTClachlanItem GroupIncorrect Result=>Other
      StatusConfirmed=>Patch Submitted
      Assigned toNone=>lachlan
    Sat 27 Feb 2016 04:35:46 AM UTClachlanAttached File-=>Added bug_38584_patch_without_lines.cset, #36486
    Fri 24 Jan 2014 09:11:43 PM UTCmtmillerItem GroupSegfault, Bus Error, etc.=>Incorrect Result
      Operating SystemMac OS=>Any
    Fri 11 Oct 2013 04:58:08 PM UTCrik5Summarysetting linestyle to "none" for fill object causes error=>setting linestyle to "none" for fill object causes error (gnuplot)
    Mon 25 Mar 2013 03:16:01 PM UTCrik5CategoryPlotting=>Plotting with gnuplot

    Back to the top

    Powered by Savane 3.1-cleanup1