diff src/graphics.h.in @ 12685:5cbf660e649d

Restructure subplot positioning and avoid labels overlap (bug #31610) * graphics.h.in (axes::properties): New hidden radio property "autopos_tag" enabling special handling of subplot axes. (axes::properties::sync_positions): New function variant accepting looseinset values as input. * graphics.cc (axes::properties::sync_positions): Handle position synchronization of subplots. * subplot.m: Support subplot position synchronization for fltk plots (fixes bug #31610) and simplify the source code. * plotyy.m: Allow "outerposition" as "activepositionproperty" and take looseinset into account.
author Konstantinos Poulios <logari81@googlemail.com>
date Fri, 20 May 2011 15:19:18 +0200
parents 0dda50ae4997
children 6c1d0f03c331
line wrap: on
line diff
--- a/src/graphics.h.in
+++ b/src/graphics.h.in
@@ -3318,6 +3318,8 @@
       row_vector_property zmtick h , Matrix ()
       // hidden properties for inset
       array_property looseinset hu , Matrix (1, 4, 0.0)
+      // hidden properties for alignment of subplots
+      radio_property autopos_tag h , "{none}|subplot"
    END_PROPERTIES
 
   protected:
@@ -3411,7 +3413,9 @@
           calc_ticklabels (ztick, zticklabel, zscale.is ("log"));
       }
 
+    void sync_positions (const Matrix& linset);
     void sync_positions (void);
+
     void update_outerposition (void)
     {
       set_activepositionproperty ("outerposition");