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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Tue 02 May 2023 03:44:00 PM UTC, comment #11: 

Re comment #10::
Thanks! The switcher workaround worked, updating the driver fixed it for the hardware OpenGL setting as well.

mspo
Tue 02 May 2023 03:08:34 PM UTC, comment #10: 

Re comment #9: I don't see how that could be related to this specific change.
Both commands work for me as expected with Octave 8.2.0 on Windows 11.

What you are seeing might be an issue in the OpenGL drivers you have installed.
Try updating your graphics card drivers.
If that doesn't help try switching between software or hardware OpenGL. You can use the "OpenGL Switcher" in the Windows Start menu group of Octave for that.

Markus Mützel <mmuetzel>
Group administrator
Tue 02 May 2023 03:00:55 PM UTC, comment #9: 

In Octave 8.1.0 and 8.2.0 under Windows 10, the following command leads to a complete crash of Octave:

line([0,1], [0,1], 'linewidth', 2, 'linestyle', '--')

However,

line([0,1], [0,1], 'linewidth', 1, 'linestyle', '--')

works as expected.
Is this related to the changes here?

mspo
Wed 16 Nov 2022 07:19:49 PM UTC, comment #8: 

It was intentional.  This was a very old undocumented feature that I removed in Octave 7.  It turned out somewhere, someone might have been using it so you changed it to a deprecation with warning that would last for two Octave versions.  Now that the development branch is at Octave 9 I removed it.  I don't think the intention was to keep it, but simply hidden from view.

Rik <rik5>
Group administrator
Wed 16 Nov 2022 06:10:59 PM UTC, comment #7: 

@Rik: I see you also removed the warning here:
https://hg.savannah.gnu.org/hgweb/octave/rev/48c0379d86f2

I was under the impression that we wanted to keep this as an undocumented feature. Am I missing something?

Markus Mützel <mmuetzel>
Group administrator
Wed 16 Nov 2022 07:18:53 AM UTC, comment #6: 

This was reverted again as part of the following changeset:
https://hg.savannah.gnu.org/hgweb/octave/rev/c17155495497

Was that intentional?

Markus Mützel <mmuetzel>
Group administrator
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>
Group administrator
Fri 27 May 2022 02:00:15 PM UTC, comment #4: 

I reverted that changeset here:
https://hg.savannah.gnu.org/hgweb/octave/rev/399925c27b7c

And deprecated those line style identifiers here:
https://hg.savannah.gnu.org/hgweb/octave/rev/7c4e580bc103

Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
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>
Group administrator
Mon 16 May 2022 08:30:15 AM UTC, comment #2: 

IIUC, support for numeric line style identifiers was removed with this changeset:
https://hg.savannah.gnu.org/hgweb/octave/rev/014d2710dcd5

@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>
Group administrator
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>
Group administrator
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;',...
x,sin(x),"2+;CP+2;")
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:
   
   
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 mspo (Posted a comment)
  • -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 group 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.13-ee12.
    Corresponding source code