bugGNU Octave - Bugs: bug #62882, 'xticklabelrotation',...

 
 

bug #62882: 'xticklabelrotation', 'yticklabelrotation' axes properties don't rotate text labels

Submitter:  Rik <rik5>
Submitted:  Tue 09 Aug 2022 08:10:49 PM UTC
 
Category:  Plotting Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Patch Submitted Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       

 

Tue 09 Aug 2022 10:58:28 PM UTC, comment #1: 

Attached is a changeset that implements the '[XYZ]ticklabelrotation' properties.  It's not perfect though.  It generally works for rotations of -89 to +89 degrees.  The perfect rotations of 90, 180, 270 cause weird behavior (an extra +90 is added).  Also, the alignment isn't great with the ticks when large angles like +89 are used.  There probably needs to be some cleanup of the 'horizontalalignment' and 'verticalalignment' values.

(file #53552)

Rik <rik5>
Project Administrator
Tue 09 Aug 2022 08:10:49 PM UTC, original submission:  

The axes graphics object has properties 'xticklabelrotation' and 'yticklabelrotation' which can be queried and modified.  There are also m-files 'xtickangle.m' and 'ytickangle.m' that modify these properties for Matlab compatibility.  However, changing the values of these properties produces no visual changes.

On the other hand, rotation is implemented for text objects.  The following code works

ht = text (0.5, 0.5, "Hello World", "rotation", 45);

This might be as simple as connecting the property to the text rendering call within gl-render.cc.

Rik <rik5>
Project Administrator

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #53552:  bug62882.cset added by rik5 (8KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-08-09 rik5 Attached File- Added bug62882.cset, #53552
        StatusConfirmed Patch Submitted

    Back to the top


    Powered by Savane 3.9