bugGNU Octave - Bugs: bug #62470, plot: Numeric scalars are no...


bug #62470: plot: Numeric scalars are no longer recognized as line format identifiers

Submitter:  Orion Poplawski <opoplawski>
Submitted:  Mon 16 May 2022 02:27:48 AM UTC
Category:  Plotting Severity:  3 - Normal
Priority:  3 - Low Item Group:  Other
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 7.1.0 Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)

Comment Type & Canned Response:


Fri 27 May 2022 03:17:53 PM UTC, comment #5: 

I made a small amendment to add the new warning ID to the list of IDs in warning_ids.m (https://hg.savannah.gnu.org/hgweb/octave/rev/39876ea8c588).

I verified a warning is produced when deprecated linestyle options are used.  Marking as Fixed and closing report.

Rik <rik5>
Project Administrator
Fri 27 May 2022 02:00:15 PM UTC, comment #4: 

I reverted that changeset here:

And deprecated those line style identifiers here:

Marking as ready for test.

Markus Mützel <mmuetzel>
Project Member
Mon 16 May 2022 10:04:41 PM UTC, comment #3: 

This method of linestyles and colors is so old that it was deemed unnecessary to deprecate before removing.  I really doubt there's much code that uses it and I'm inclined to just let the error stand as a prod to changeover this old code.

But if someone wants to revert the changeset for Octave version 7 and have a warning issued I suppose one could.

Rik <rik5>
Project Administrator
Mon 16 May 2022 08:30:15 AM UTC, comment #2: 

IIUC, support for numeric line style identifiers was removed with this changeset:

@Rik: Is that a regression? Should we deprecate those line style identifiers for a couple of versions before we ultimately remove them?

Markus Mützel <mmuetzel>
Project Member
Mon 16 May 2022 07:52:20 AM UTC, comment #1: 

I can reproduce on Windows with Octave 7.1.0.

Complete steps to reproduce:

x = linspace(0,pi,100);
plot(x,sin(x),'1+;CP+1;', x,cos(x),"2+;CP+2;");

Most probably '1' or "2" are no longer recognized as line format identifiers.
I can't find their meaning documented anywhere. What should these line formats do?

Something like the following command still works:

x = linspace(0,pi,100);
plot(x,sin(x),'b+;CP+1;', x,cos(x),"m+;CP+2;");

See also bug #62394 which sounds pretty similar. Fixing this bug will likely also fix the other bug.

Markus Mützel <mmuetzel>
Project Member
Mon 16 May 2022 02:27:48 AM UTC, original submission:  

This seems to be new with 7.1.0:

octave:8> plot(x,sin(x),'1+;CP+1;',...
error: _go_line_: set: unknown line property 1+;CP+1;, unable to create graphics handle
error: called from
    _plt_>__plt2vv__ at line 501 column 10
    _plt_>__plt2__ at line 247 column 14
    _plt_ at line 134 column 14
    plot at line 235 column 10

Orion Poplawski <opoplawski>


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

Attach Files:

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 rik5 (Posted a comment)
  • -email is unavailable- added by mmuetzel
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by opoplawski (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 project members can vote.





    Follow 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-05-27 rik5 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2022-05-27 mmuetzel StatusNeed Info Ready For Test
    2022-05-25 rik5 Priority5 - Normal 3 - Low
    2022-05-16 rik5 Item GroupRegression Other
    2022-05-16 mmuetzel Carbon-Copy- Added rik5
    2022-05-16 mmuetzel StatusNone Need Info
        Operating SystemGNU/Linux Any
        SummaryMulti variable plot fails with unknown line property plot: Numeric scalars are no longer recognized as line format identifiers

    Back to the top

    Powered by Savane 3.9