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


bug #50652: ytickformat function missing

Submitted by:  CH <atcl>
Submitted on:  Mon 27 Mar 2017 11:55:04 AM 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:  Any

Add a New Comment(Rich Markup)

You are not logged in

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


  Spam posted by papatyak
Fri 07 Apr 2017 03:16:53 PM UTC, 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 06 Apr 2017 09:25:36 PM UTC, 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 04 Apr 2017 05:15:24 PM UTC, 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:

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 27 Mar 2017 05:13:10 PM UTC, 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 27 Mar 2017 11:55:04 AM UTC, 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 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 papatyak (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by atcl (Submitted the item)

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

    Only project members can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-03-27 rik5 Severity3 - Normal => 2 - Minor
        StatusNone => Confirmed
        Release4.0.0 => dev
        Summaryytickformat => ytickformat function missing

    Back to the top

    Powered by Savane 3.3