comparison libinterp/corefcn/graphics.cc @ 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 50f14692e33b
children dfea01b3425f
comparison
equal deleted inserted replaced
19692:5a59c0e1203d 19693:a9516bc4c55c
6394 xticklabel.run_listeners (POSTSET); 6394 xticklabel.run_listeners (POSTSET);
6395 mark_modified (); 6395 mark_modified ();
6396 } 6396 }
6397 else 6397 else
6398 set_xticklabelmode ("manual"); 6398 set_xticklabelmode ("manual");
6399
6400 sync_positions ();
6399 } 6401 }
6400 } 6402 }
6401 6403
6402 void 6404 void
6403 axes::properties::set_yticklabel (const octave_value& v) 6405 axes::properties::set_yticklabel (const octave_value& v)
6410 yticklabel.run_listeners (POSTSET); 6412 yticklabel.run_listeners (POSTSET);
6411 mark_modified (); 6413 mark_modified ();
6412 } 6414 }
6413 else 6415 else
6414 set_yticklabelmode ("manual"); 6416 set_yticklabelmode ("manual");
6417
6418 sync_positions ();
6415 } 6419 }
6416 } 6420 }
6417 6421
6418 void 6422 void
6419 axes::properties::set_zticklabel (const octave_value& v) 6423 axes::properties::set_zticklabel (const octave_value& v)
6426 zticklabel.run_listeners (POSTSET); 6430 zticklabel.run_listeners (POSTSET);
6427 mark_modified (); 6431 mark_modified ();
6428 } 6432 }
6429 else 6433 else
6430 set_zticklabelmode ("manual"); 6434 set_zticklabelmode ("manual");
6435
6436 sync_positions ();
6431 } 6437 }
6432 } 6438 }
6433 6439
6434 // Almost identical to convert_ticklabel_string but it only accepts 6440 // Almost identical to convert_ticklabel_string but it only accepts
6435 // cellstr or string, not numeric input. 6441 // cellstr or string, not numeric input.