bugGNU Octave - Bugs: bug #60621, unclear error message in case of...

 
 

bug #60621: unclear error message in case of missing final semicolon in 'plot' command argument

Submitter:  None
Submitted:  Mon 17 May 2021 11:11:40 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Assigned to:  None
Originator Name:  Sergei Steshenko Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 4.2.2
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 12 Aug 2021 01:19:23 AM UTC, comment #1: 

so that format is supposed to designate a name for the plot.

looking in _pltopt_.m that parses the plot codes, line 197 starts the part that should look for the second ; and produce an error:

error ("%s: unfinished key label", caller);

but only if err_on_invalid is set. that doesn't get set, so it sets 'default plot options', issues a return, and then calls:

 error ("%s: properties must appear followed by a value", caller);

instead.

the err_on_invalid flag is set in the call to _pltopt_, and it's set as false.  so I don't see how that error could ever get issued. 

hmmm...

Nicholas Jankowski <nrjank>
Group Member
Mon 17 May 2021 11:11:40 AM UTC, original submission:  

Please see the following screen session:

"
octave:4> plot(1:2, 1:2, "-;y")
error: plot: properties must appear followed by a value
error: called from
    _plt_ at line 96 column 15
    plot at line 223 column 10
octave:4>
".

The problem is missing semicolon after 'y', i.e. the proper command should be

plot(1:2, 1:2, "-;y;")
.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nrjank (Posted a comment)
  • -email is unavailable- added by None (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.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code