bugGNU Octave - Bugs: bug #48469, 'linewidth' 0 is the same as no...

 
 

bug #48469: 'linewidth' 0 is the same as no linewidth option

Submitted by:  Francesco Potortì <pot>
Submitted on:  Mon 11 Jul 2016 04:37:15 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: DuplicateAssigned to: None
Originator Name: Open/Closed: Closed
Release: devOperating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Tue 12 Jul 2016 04:41:40 PM UTC, comment #7:

See bug #34143, already discussed and confirmed that linewidth must be a positive number.

Matlab says:

Mike Miller <mtmiller>
Project Administrator
Tue 12 Jul 2016 04:41:06 PM UTC, comment #6:

See bug #34143, already discussed and confirmed that linewidth must be a positive number.

Matlab says:

Mike Miller <mtmiller>
Project Administrator
Tue 12 Jul 2016 03:03:55 PM UTC, comment #5:

WWMD?

Dmitri A. Sergatskov <dasergatskov>
Tue 12 Jul 2016 02:43:28 PM UTC, comment #4:

Maybe doing the most obvious thing and trating linewidth==0 as no line?

Francesco Potortì <pot>
Mon 11 Jul 2016 10:45:27 PM UTC, comment #3:

Thank you, then I think this can be closed as a duplicate of task #11311.

Mike Miller <mtmiller>
Project Administrator
Mon 11 Jul 2016 10:07:10 PM UTC, comment #2:

@Mike: task #11311 is about validating graphics properties values

Pantxo Diribarne <pantxo>
Project Member
Mon 11 Jul 2016 07:07:08 PM UTC, comment #1:

Confirmed on default. Setting the linewidth property to 0.1 works and draws a very faint lint. Setting the linewidth property to 0 seems to draw the line with the default value. The property is stored as 0.

Actually the linewidth property doesn't seem to have any validation on it, I can enter a linewidth of -12 and it also renders the same as the default linewidth.

I suspect the right way to solve this would be to throw an "invalid value for property linewidth" error if the value is not a positive scalar.

Mike Miller <mtmiller>
Project Administrator
Mon 11 Jul 2016 04:37:15 PM UTC, original submission:

In both fltk and gnuplot, this draws no line:

> plot(1:2, 'linestyle', 'none')


while this draws a line:

> plot(1:2, 'linewidth', 0)


This is a bug, or a missing documentation about a possible special meaning of linewidth of 0.

Francesco Potortì <pot>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies, task dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dasergatskov (Posted a comment)
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 12 Jul 2016 04:41:40 PM UTCmtmillerDependencies-=>Depends on task #11311
    Tue 12 Jul 2016 04:41:22 PM UTCmtmillerDependencies-=>Depends on bugs #34143
    Mon 11 Jul 2016 10:45:27 PM UTCmtmillerStatusConfirmed=>Duplicate
      Open/ClosedOpen=>Closed
    Mon 11 Jul 2016 07:07:08 PM UTCmtmillerStatusNone=>Confirmed
      Release4.0.2=>dev
      Operating SystemGNU/Linux=>Any

    Back to the top


    Powered by Savane 3.1-cleanup1