changeset 19693:a9516bc4c55c

Update axes "tightinset" when "x/y/ztick" have changed * graphics.cc (axes::properties::update_x/y/ztick): call sync_positions to update the tightinset. * graphics.cc (axes::properties::set_x/y/zticklabel): call sync_positions to update the tightinset.
author Pantxo Diribarne <pantxo.diribarne@gmail.com>
date Thu, 05 Feb 2015 23:12:47 +0100
parents 5a59c0e1203d
children 40e846a96908
files libinterp/corefcn/graphics.cc libinterp/corefcn/graphics.in.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/graphics.cc	Thu Feb 05 17:58:20 2015 +0100
+++ b/libinterp/corefcn/graphics.cc	Thu Feb 05 23:12:47 2015 +0100
@@ -6396,6 +6396,8 @@
         }
       else
         set_xticklabelmode ("manual");
+
+      sync_positions ();
     }
 }
 
@@ -6412,6 +6414,8 @@
         }
       else
         set_yticklabelmode ("manual");
+
+      sync_positions ();
     }
 }
 
@@ -6428,6 +6432,8 @@
         }
       else
         set_zticklabelmode ("manual");
+
+      sync_positions ();
     }
 }
 
--- a/libinterp/corefcn/graphics.in.h	Thu Feb 05 17:58:20 2015 +0100
+++ b/libinterp/corefcn/graphics.in.h	Thu Feb 05 23:12:47 2015 +0100
@@ -3981,16 +3981,19 @@
     {
       if (xticklabelmode.is ("auto"))
         calc_ticklabels (xtick, xticklabel, xscale.is ("log"));
+      sync_positions ();
     }
     void update_ytick (void)
     {
       if (yticklabelmode.is ("auto"))
         calc_ticklabels (ytick, yticklabel, yscale.is ("log"));
+      sync_positions ();
     }
     void update_ztick (void)
     {
       if (zticklabelmode.is ("auto"))
         calc_ticklabels (ztick, zticklabel, zscale.is ("log"));
+      sync_positions ();
     }
 
     void update_xtickmode (void)