Mercurial > octave
comparison libinterp/corefcn/graphics.in.h @ 31238:67cad4e8f866
Include graphics objects with hidden handles in axes limit calculation (bug #63095).
* libinterp/corefcn/graphics.cc (get_children_limits): Get handles to all axes
children including those with hidden handle visibility. Add BIST.
* libinterp/corefcn/graphics.in.h (text::update_position): Do not automatically
change "zliminclude" property. Axes labels are implemented as text objects, and
we don't want their extent to be included in the axis limit calculation.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 24 Sep 2022 11:57:44 +0200 |
parents | cb9451780a15 |
children | 5ea5fe592a9a |
comparison
equal
deleted
inserted
replaced
31237:e3016248ca5d | 31238:67cad4e8f866 |
---|---|
4639 lim = Matrix (1, 4, pos(2)); | 4639 lim = Matrix (1, 4, pos(2)); |
4640 lim(2) = (lim(2) <= 0 ? octave::numeric_limits<double>::Inf () | 4640 lim(2) = (lim(2) <= 0 ? octave::numeric_limits<double>::Inf () |
4641 : lim(2)); | 4641 : lim(2)); |
4642 lim(3) = (lim(3) >= 0 ? -octave::numeric_limits<double>::Inf () | 4642 lim(3) = (lim(3) >= 0 ? -octave::numeric_limits<double>::Inf () |
4643 : lim(3)); | 4643 : lim(3)); |
4644 set_zliminclude ("on"); | |
4645 set_zlim (lim); | 4644 set_zlim (lim); |
4646 } | 4645 } |
4647 else | |
4648 set_zliminclude ("off"); | |
4649 } | 4646 } |
4650 | 4647 |
4651 OCTINTERP_API void request_autopos (void); | 4648 OCTINTERP_API void request_autopos (void); |
4652 void update_positionmode (void) { request_autopos (); } | 4649 void update_positionmode (void) { request_autopos (); } |
4653 void update_rotationmode (void) { request_autopos (); } | 4650 void update_rotationmode (void) { request_autopos (); } |