Mercurial > octave
view CITATION @ 32103:32313c5e1bfc
Don't use 2-digit exponent format for ticklabels when unnecessary.
* graphics.cc (calc_ticklabels): New boolean variable is_2digit_exp.
Cycle through ticklabel values using log10 to determine if maximum
exponent is greater than or equal to 10. As soon as this condition
is found set is_2digit_exp to true and break out of loop.
Within ticklabel formatting loop, only print leading '0' if is_2digit_exp
is true and the current exponent to be printed is less than 10.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 31 May 2023 10:44:35 -0700 |
parents | fdadf31961bb |
children | 6fc591af58ba |
line wrap: on
line source
To cite GNU Octave in publications use: John W. Eaton, David Bateman, Søren Hauberg, Rik Wehbring (2023). GNU Octave version 8.2.0 manual: a high-level interactive language for numerical computations. URL https://www.gnu.org/software/octave/doc/v8.2.0/ A BibTeX entry for LaTeX users is: @manual{, title = {{GNU Octave} version 8.2.0 manual: a high-level interactive language for numerical computations}, author = {John W. Eaton and David Bateman and S{\o}ren Hauberg and Rik Wehbring}, year = {2023}, url = {https://www.gnu.org/software/octave/doc/v8.2.0/}, } We have invested a lot of time and effort in creating GNU Octave, please cite it when using it. See also 'citation pkgname' for citing Octave packages.