Mercurial > hg > octave-thorsten
diff src/graphics.h.in @ 7860:67edbcb19665
rudimentry (i.e. no font metrics) sync of axes.position and axes.outerposition
* * *
preserve axes position if mode is replace
* * *
use default_axes_postion when syncing outerposition and position
* * *
Update transformation matrices when axes position changes.
author | Shai Ayal <shaiay@users.sourceforge.net> |
---|---|
date | Fri, 14 Mar 2008 21:02:16 +0200 (2008-03-14) |
parents | 09b1a9c88128 |
children | 8f3459a90bf3 |
line wrap: on
line diff
--- a/src/graphics.h.in +++ b/src/graphics.h.in @@ -2566,7 +2566,7 @@ // properties declarations. BEGIN_PROPERTIES(axes) - array_property position , default_axes_position () + array_property position u , default_axes_position () mutable handle_property title GSO , graphics_handle () bool_property box , "on" bool_property key , "off" @@ -2625,7 +2625,7 @@ radio_property xaxislocation , "{bottom}|top|zero" array_property view u , Matrix () radio_property nextplot , "add|replace_children|{replace}" - array_property outerposition , default_axes_outerposition () + array_property outerposition u , default_axes_outerposition () radio_property activepositionproperty , "{outerposition}|position" radio_property __colorbar__ h , "{none}|north|south|east|west|northoutside|southoutside|eastoutside|westoutside" color_property ambientlightcolor , color_values (1, 1, 1) @@ -2713,6 +2713,10 @@ void update_ydir (void) { update_camera (); } void update_zdir (void) { update_camera (); } + void sync_positions (void); + void update_outerposition (void) { sync_positions ();} + void update_position (void) { sync_positions (); } + double calc_tick_sep (double minval, double maxval); void calc_ticks_and_lims (array_property& lims, array_property& ticks, bool limmode_is_auto, bool is_logscale); void fix_limits (array_property& lims)