patchGNU Octave - Patches: patch #10408, implement rticklabels and...

 
 

patch #10408: implement rticklabels and tticklabels for polar plots

Submitter:  Nicholas Jankowski <nrjank>
Submitted:  Fri 03 Nov 2023 06:25:48 PM UTC
   
 
Category:  Core : new function Priority:  3 - Low
Status:  Ready For Test Privacy:  Public
Assigned to:  nrjank Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 15 Dec 2023 05:48:19 AM UTC, comment #2: 

corrected and cleaned up docstrings/comments and some code style at
https://hg.savannah.gnu.org/hgweb/octave/rev/2bceadf47b77

Nicholas Jankowski <nrjank>
Group Member
Fri 15 Dec 2023 05:00:52 AM UTC, comment #1: 

after some updates to polar over in bug #64991, created rticklabels and tticklabels functions modeled after the x/y/zticklabels functions. Pushed to default, they should become part of octave 10.

https://hg.savannah.gnu.org/hgweb/octave/rev/65084aa09317

Note that rticklabels depends on some changes made in bug #64991 to how polar populates the rtick property.

marking as ready for test.

Nicholas Jankowski <nrjank>
Group Member
Fri 03 Nov 2023 06:25:48 PM UTC, original submission:  

as discussed over in bug #51839, and recently brought up again in https://octave.discourse.group/t/how-to-make-a-polar-plot-from-3d-data/4966,  neither octave nor matlab have a function that easily modifies the values of the tick labels for plots created with the polar function.  In matlab, the newer polarplot class produces polar objects that can be edited directly and with the functions rticklabels and tticklabels, which perform similarly to xticklabels.

As the actual procedure for modifying these labels is rather cumbersome, and involves digging into hidden child handles and understanding the arbitrary handle ordering, this patch report is a placeholder for octave implementations of both functions that will work on plots from polar just like the xticklabels functions.  This will be a known expansion of the functions beyond matlab capability, as matlab produces an error if either r- or tticklabels is called on anything other than a polarplot object, but if (when?) octave does rework plot objects to be able to produce a real polarplot object, it should just be a matter of overloading these functions for that new class.

Nicholas Jankowski <nrjank>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by nrjank (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 logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-12-15 nrjank StatusIn Progress Ready For Test
        Dependencies- Depends on bugs #64991

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code