bugGNU Octave - Bugs: bug #34906, Compatibility difference with...

 
 
Show feedback again

bug #34906: Compatibility difference with ticklabels, linestyleorder

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Sat 26 Nov 2011 05:50:30 PM UTC  
 
Category: PlottingSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: NoneAssigned to: None
Originator Name: Ben AbbottOpen/Closed: Open
Release: devOperating System: Any

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 13 Mar 2013 11:34:43 PM UTC, comment #2:

I'm not too concerned with the char vs. cellstr. But Octave has zero support for a string that uses '|' as a delimiter. Instead it treats it as a single label which gets put at the first xtick position.

Rik <rik5>
Project Member
Sun 27 Nov 2011 12:53:17 AM UTC, comment #1:

I took a look at how linestyleorder behaves under matlab.

ML's behavior looks consistent to me.

Ben Abbott <bpabbott>
Project Member
Sat 26 Nov 2011 05:50:30 PM UTC, original submission:

There is a subtle incompatibility in how ML and Octave handle ticklabels. Below I use xticklabels to demonstrate, but the problem exists for x, y, z ticklabels.

ML uses the 3rd variant for the default xticklabel values., and Octave uses the 4th (1x6 cellstr)

Each set() statement works in both Octave and ML. However, the resulting values returned by the get() are different.

Octave returns ...

And ML ...

I see three differences.

(1) The default xticklabel values for ML are char, and are cell (cellstr) for Octave.

(2) ML converts the xticklabel with class double or char with "|" used as a delimiter to a char array. Octave returns the same class and format as was passed to set().

(3) ML converts a cellstr column vector (1xN) to a row vector (Nx1).

Ben Abbott <bpabbott>
Project Member

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by bpabbott (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 27 Nov 2011 12:53:17 AM UTCbpabbottSummaryCompatibility difference with ticklabels=>Compatibility difference with ticklabels, linestyleorder
    Sat 26 Nov 2011 05:50:49 PM UTCbpabbottSummaryCompatibility difference =>Compatibility difference with ticklabels
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup