changeset 31765:faf5d5960732

maint: Merge stable to default.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 21 Jan 2023 14:02:11 +0100
parents 8c57434587c9 (current diff) 63de4cc96c5d (diff)
children 56223b5a01d4
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Thu Jan 19 20:08:10 2023 +0100
+++ b/libinterp/corefcn/graphics.cc	Sat Jan 21 14:02:11 2023 +0100
@@ -7739,6 +7739,20 @@
 %! unwind_protect_cleanup
 %!   delete (hf);
 %! end_unwind_protect
+
+## Check automatically determined axes ticks with "tickaligned" (default) and
+## "tight" xlimitmethod.
+%!test <*63624>
+%! hf = figure ("visible", "off");
+%! unwind_protect
+%!   hax = axes ("parent", hf);
+%!   plot (hax, [1, 201], [0, 1]);
+%!   assert (get (hax, "xtick"), 0:50:250);
+%!   axis (hax, "tight");
+%!   assert (get (hax, "xtick"), 50:50:200);
+%! unwind_protect_cleanup
+%!   delete (hf);
+%! end_unwind_protect
 */
 
 void