Mercurial > octave
changeset 26550:acefc0bca74a
Scale Octave's 3-D ticklength for better appearances (bug #55483)
* graphics.cc (axes::properties::update_ticklength): Scale 3-D ticklength by
76% so it is not so chunky.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 15 Jan 2019 16:21:37 -0800 |
parents | 58e7a737c82b |
children | 9728b61ef67e |
files | libinterp/corefcn/graphics.cc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc Tue Jan 15 15:34:53 2019 -0800 +++ b/libinterp/corefcn/graphics.cc Tue Jan 15 16:21:37 2019 -0800 @@ -6114,7 +6114,9 @@ Matrix bbox = get_boundingbox (true); Matrix ticklen = get_ticklength ().matrix_value (); ticklen(0) *= std::max (bbox(2), bbox(3)); - ticklen(1) *= std::max (bbox(2), bbox(3)); + // FIXME: This algorithm is not Matlab-compatible. See bug #55483. + // Scale the results of Octave's algorithm for better visuals. + ticklen(1) *= (0.76 * std::max (bbox(2), bbox(3))); xticklen = ticksign * (mode2D ? ticklen(0) : ticklen(1)); yticklen = ticksign * (mode2D ? ticklen(0) : ticklen(1));