changeset 28302:1f5ec8c025bc

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.
author Markus Mützel <markus.muetzel@gmx.de>
date Sun, 17 May 2020 18:59:24 +0200
parents b8a38ed00bf4
children af912e78ce43
files doc/interpreter/genpropdoc.m libinterp/corefcn/graphics.in.h
diffstat 2 files changed, 18 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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";
--- 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