bugGNU Octave - Bugs: bug #50652, ytickformat function missing

 
 

bug #50652: ytickformat function missing

Submitted by:  CH <atcl>
Submitted on:  Mon Mar 27 11:55:04 2017  
 
Category: PlottingSeverity: 2 - Minor
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: Open/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.

 

Fri Apr 7 15:16:53 2017, comment #4:

An easier approach for this specific functionality might be to add a (hidden?) property "XTickLabelFormat" to the axes object and use this when automatically creating the tick labels (and respectively for the y and z axes).

The "XTickLabel" axes property etc. are still present in Matlab R2016a. And I guess Matlab cannot remove them, or else they would break a lot of stuff. They probably will continue to re-route those NumericRuler properties to the axes properties.
We could re-route "XTickLabelFormat" as well if we eventually decided to implement NumericRuler objects (or HG2???).
Would that be an acceptable language extension?

Markus Mützel <mmuetzel>
Project Member
Thu Apr 6 21:25:36 2017, comment #3:

It appears that The Mathworks significantly changed the way graphic objects are implemented when they switched to Handle Graphics 2 (HG2). Previously, the axes object itself had properties for each axis so there was an "xcolor" property and an "xticklabel" property, etc., etc.

Now, it seems that the axes object has properties "Xaxis", "Yaxis", "Zaxis" which point to NumericRuler objects. Octave could make this change as well, but this is a big project.

Rik <rik5>
Project Administrator
Tue Apr 4 17:15:24 2017, comment #2:

The final function should probably also include a listener to the axes limits. See this example in Matlab R2016a:

Matlab seems to have added more granular control to each individual axis of an axes object:
https://de.mathworks.com/help/matlab/ref/numericruler-properties.html

Most of those properties are duplicates to the ones present in the axes (that have a preceding "X", "Y" or "Z"). But some of them seem to be new.

Markus Mützel <mmuetzel>
Project Member
Mon Mar 27 17:13:10 2017, comment #1:

Confirmed. Changed Release to dev and Severity to Minor since there is an obvious workaround. This function could be easily added for the next 4.4 release, although it would need to have documentation as well as the trivial implementation shown.

Rik <rik5>
Project Administrator
Mon Mar 27 11:55:04 2017, original submission:

Matlab introduced a ytickformat(formatstring) command in version 2016b, this command can be easily included in Octave using this mailinglist solution: http://octave.1599824.n4.nabble.com/Tick-label-format-and-color-td4674571.html or as a one-liner:

CH <atcl>

 

(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 mmuetzel (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by atcl (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

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

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Mar 27 17:13:10 2017rik5Severity3 - Normal=>2 - Minor
      StatusNone=>Confirmed
      Release4.0.0=>dev
      Summaryytickformat=>ytickformat function missing

    Back to the top


    Powered by Savane 3.1-cleanup1