# HG changeset patch # User Markus Mützel # Date 1589734764 -7200 # Node ID 1f5ec8c025bc847ce9e0162e6221ef2ff40d68b5 # Parent b8a38ed00bf47ab230329111ecf768429c08b062 Mirror value of axes property "innerposition" from "position" (bug #58336). * graphics.in.h (axes::properties::get_innerposition, axes::properties::set_innerposition): Add functions that redirect to "position" property. * doc/interpreter/genpropdoc.m: Add description for "innerposition" axes property. diff -r b8a38ed00bf4 -r 1f5ec8c025bc doc/interpreter/genpropdoc.m --- a/doc/interpreter/genpropdoc.m Sat May 16 13:36:48 2020 -0700 +++ b/doc/interpreter/genpropdoc.m Sun May 17 18:59:24 2020 +0200 @@ -766,6 +766,11 @@ case "gridlinestyle" + case "innerposition" + s.doc = "The @qcode{\"innerposition\"} property is the same as the \ +@ref{XREFaxesposition, , @w{@qcode{\"position\"} property}}."; + s.valid = valid_4elvec; + case "labelfontsizemultiplier" s.doc = "Ratio between the x/y/zlabel fontsize and the tick \ label fontsize"; diff -r b8a38ed00bf4 -r 1f5ec8c025bc libinterp/corefcn/graphics.in.h --- a/libinterp/corefcn/graphics.in.h Sat May 16 13:36:48 2020 -0700 +++ b/libinterp/corefcn/graphics.in.h Sun May 17 18:59:24 2020 +0200 @@ -3466,6 +3466,18 @@ void sync_positions (void); + // Redirect calls to "innerposition" to "position". + + octave_value get_innerposition (void) const + { + return get_position (); + } + + void set_innerposition (const octave_value& val) + { + set_position (val); + } + void update_autopos (const std::string& elem_type); void update_xlabel_position (void); void update_ylabel_position (void); @@ -3676,8 +3688,7 @@ color_property gridcolor m , color_property (color_values (0.15, 0.15, 0.15), radio_values ("none")) radio_property gridcolormode , "{auto}|manual" radio_property gridlinestyle , "{-}|--|:|-.|none" - // FIXME: Should be synonymous to "position" - array_property innerposition , default_axes_position () + array_property innerposition sg , default_axes_position () // FIXME: Should be an array of "interaction objects". Make it read-only for now. any_property interactions r , Matrix () double_property labelfontsizemultiplier u , 1.1