# HG changeset patch # User Pantxo Diribarne # Date 1423174367 -3600 # Node ID a9516bc4c55c161047d0910ca7f72252a9163c1f # Parent 5a59c0e1203da8ca08a1fff461ffdfa877c09a93 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. diff --git a/libinterp/corefcn/graphics.cc b/libinterp/corefcn/graphics.cc --- a/libinterp/corefcn/graphics.cc +++ b/libinterp/corefcn/graphics.cc @@ -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 (); } } diff --git a/libinterp/corefcn/graphics.in.h b/libinterp/corefcn/graphics.in.h --- a/libinterp/corefcn/graphics.in.h +++ b/libinterp/corefcn/graphics.in.h @@ -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)