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:  Fixed Assigned to:  None
Originator Name:  Sergei Steshenko Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.2.2
Operating System:  * GNU/Linux Fixed Release:  11.1.0 (current default)
Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Wed 15 Oct 2025 10:12:25 PM UTC, comment #2: 

I changed the code so a more explicit error message is emitted when the plot STYLE argument has a badly formatted key label.  The new error is "key label missing terminating ';'".  See changeset https://hg.savann ... /rev/03a192426bdb.

Marking as fixed and closing report.

Rik <rik5>
Group administrator
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

 

Attached Files

This item currently has no attached files.

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by nrjank (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Votes

    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.

     

    History

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2025-10-15 rik5 StatusNone Fixed
        Open/ClosedOpen Closed
        Fixed ReleaseNone 11.1.0 (current default)

    Back to the top

    Powered by Savane 3.16.
    Corresponding source code