Mercurial > octave
changeset 31759:39275e509f36
maint: Merge stable to default.
author | Pantxo Diribarne <pantxo.diribarne@gmail.com> |
---|---|
date | Thu, 19 Jan 2023 23:09:41 +0100 |
parents | 02f6b7e64ac8 (current diff) 084bbdabb969 (diff) |
children | 3105755fa5f1 |
files | libinterp/corefcn/graphics.cc |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc Wed Jan 18 16:07:10 2023 -0500 +++ b/libinterp/corefcn/graphics.cc Thu Jan 19 23:09:41 2023 +0100 @@ -7812,6 +7812,12 @@ { tmp_lims(0) = lo; tmp_lims(1) = hi; + + // adjust min and max ticks to be within limits + if (i1*tick_sep < lo) + i1++; + if (i2*tick_sep > hi && i2 > i1) + i2--; } if (is_logscale)