changeset 29166:fbf6d132dec7

Re-calculate axis ticks when axis scale is changed (bug #39393). * libinterp/corefcn/graphics.cc (axes::update_axis_limits): Never skip axis update when called after the axis scale changed.
author Markus Mützel <markus.muetzel@gmx.de>
date Wed, 09 Dec 2020 19:25:01 +0100
parents 617d3aa713a4
children 9193e7c990ea
files libinterp/corefcn/graphics.cc
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Wed Dec 09 17:32:39 2020 +0100
+++ b/libinterp/corefcn/graphics.cc	Wed Dec 09 19:25:01 2020 +0100
@@ -8716,6 +8716,8 @@
           xproperties.check_axis_limits (limits, kids,
                                          xproperties.xscale_is ("log"),
                                          update_type);
+          if (axis_type == "xscale")
+            update_type = 'x';
         }
     }
   else if (axis_type == "ydata" || axis_type == "yscale"
@@ -8737,6 +8739,8 @@
           xproperties.check_axis_limits (limits, kids,
                                          xproperties.yscale_is ("log"),
                                          update_type);
+          if (axis_type == "yscale")
+            update_type = 'y';
         }
     }
   else if (axis_type == "zdata" || axis_type == "zscale"
@@ -8774,6 +8778,8 @@
           xproperties.check_axis_limits (limits, kids,
                                          xproperties.zscale_is ("log"),
                                          update_type);
+          if (axis_type == "zscale")
+            update_type = 'z';
         }
     }
   else if (axis_type == "cdata" || axis_type == "climmode"