bugGNU Octave - Bugs: bug #55483, Matlab uses different algorithm...

 
 

bug #55483: Matlab uses different algorithm for determining ticklength in 3-D than Octave

Submitter:  Rik <rik5>
Submitted:  Wed 16 Jan 2019 12:17:42 AM UTC
   
 
Category:  Plotting Severity:  1 - Wish
Priority:  2 Item Group:  Matlab Compatibility
Status:  Confirmed Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 16 Jan 2019 12:24:41 AM UTC, comment #1: 

I changed Octave to use scaled 3-D ticklengths which look better.  See https://hg.savannah.gnu.org/hgweb/octave/rev/acefc0bca74a.

I lowered the priority of this bug since we may never be motivated enough to try and code the complicated algorithm that Matlab uses for questionable gain.

Rik <rik5>
Group administrator
Wed 16 Jan 2019 12:17:42 AM UTC, original submission:  

According to Matlab, the ticklength in 3-D is determined by the second matrix element of the "ticklength" property multiplied by the largest X, Y, or Z-axis linear dimension.  First, Octave does not use the length of the drawn axes to determine ticklength, but rather the size of the axes object as returned in the "position" property entries 3:4 which correspond to width and height.  Second, as a 3-D plot is rotated the linear dimension of each axis will change which will also change the ticklength. 

A useful visual hack is to take 76% of the value calculated by Octave as the ticklength.  This produces less "chunky" ticks in 3-D.  Until someone finds it worthwhile to implement Matlab's algorithm, this should be good enough.

Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

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 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 group members can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-16 rik5 Priority5 - Normal 2

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code