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

 
 

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

Submitted by:  Rik <rik5>
Submitted on:  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

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

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>
Project 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>
Project 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)
  •  

    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.

     

     

     

    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.5