octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #59067] Implementation of xtickangle(), yticka


From: Guillaume
Subject: [Octave-bug-tracker] [bug #59067] Implementation of xtickangle(), ytickangle() and ztickangle()
Date: Sat, 5 Sep 2020 12:34:10 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

URL:
  <https://savannah.gnu.org/bugs/?59067>

                 Summary: Implementation of xtickangle(), ytickangle() and
ztickangle()
                 Project: GNU Octave
            Submitted by: gyom
            Submitted on: Sat 05 Sep 2020 04:34:09 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Feature Request
                  Status: None
             Assigned to: None
         Originator Name: Guillaume
        Originator Email: 
             Open/Closed: Open
                 Release: dev
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

Since R2016b, Matlab has helper functions to rotate the tick labels:
https://www.mathworks.com/help/matlab/ref/xtickangle.html
acting as wrappers around the XTickLabelRotation and XTickLabelRotationMode
properties of axes:
https://www.mathworks.com/help/matlab/ref/matlab.graphics.axis.axes-properties.html#budumk7-XTickLabelRotation

XTickLabelRotation is available in Octave but unused, while
XTickLabelRotationMode would still need to be added (and allowed to take
values "auto" and "manual").

I attach a possible implementation of xtickangle.m. When writing the help
text, I came across xticklabels.m which is very similar: I could rewrite
xtickangle.m to use a similar layout (with switch/endswitch). Given
xtickangle(), ytickangle() and ztickangle() are nearly identical, would it be
useful to have them call a generic __tickangle__()?

Even if the actual rotation of the tick angles is not yet implemented in
Octave, having these functions in place would contribute to Matlab
compatibility as it would replace a crash with a no-op.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 05 Sep 2020 04:34:09 PM UTC  Name: xtickangle.m  Size: 6KiB   By:
gyom

<http://savannah.gnu.org/bugs/download.php?file_id=49745>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?59067>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]