bugGNU Octave - Bugs: bug #62166, Line plot objects do not implement...

 
 

bug #62166: Line plot objects do not implement "SeriesIndex", "ColorMode", "LineStyleMode", "MarkerMode" properties

Submitted by:  Muhali <muhali>
Submitted on:  Thu 10 Mar 2022 05:23:42 PM UTC
 
Category:  Plotting Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * GNU/Linux
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Sat 26 Mar 2022 10:26:20 PM UTC, comment #2: 

Re-titling report to reflect true issue.  I did the coding for "ColorOrder" property back when it was first implemented in Octave and Matlab.  Apparently Matlab has gone on to implement 4 new graphics properties for Line objects.

Getting Matlab compatibility here will be something of a project as the properties will need to be added first to graphics.in.h and then the updaters may need to be customized which isn't always straightforward.

Rik <rik5>
Project Administrator
Thu 10 Mar 2022 05:52:47 PM UTC, comment #1: 

I changed the item group from "Matlab Compatibility" to "Incorrect Result" because I thought that this behavior was just wrong.  But now I see that Matlab behavior changed a few years ago and I believe Octave implements the previous Matlab behavior so I'm changing it back to Matlab Compatibility.

For anyone who wants to work on this change, note that the behavior of the ColorOrderIndex property in Matlab also changed.

John W. Eaton <jwe>
Project Administrator
Thu 10 Mar 2022 05:23:42 PM UTC, original submission:  

In Matlab, the following code sets the lower line to green.

plot([1 2; 4 5],'LineWidth',3)
C = get(gca, 'colororder') ;
C(1,:) = [0 1 0];
set(gca, 'colororder', C)

In Octave this doesn't work.

Muhali <muhali>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by muhali (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-03-26 rik5 SummaryLine plot objects do not implement "SeriesIndex", "ColorMode", "LineStyleMode", "ColorMode" properties => Line plot objects do not implement "SeriesIndex", "ColorMode", "LineStyleMode", "MarkerMode" properties
    2022-03-26 rik5 Severity3 - Normal => 2 - Minor
        StatusNone => Confirmed
        Release6.4.0 => dev
        Summaryset colororder has no effect => Line plot objects do not implement "SeriesIndex", "ColorMode", "LineStyleMode", "ColorMode" properties
    2022-03-10 jwe Item GroupIncorrect Result => Matlab Compatibility
    2022-03-10 jwe Item GroupMatlab Compatibility => Incorrect Result

    Back to the top


    Powered by Savane 3.9