diff src/graphics.h.in @ 12503:2c66314447f1

update axis label position after axis location changes
author Konstantinos Poulios <logari81@gmail.com>
date Mon, 07 Mar 2011 17:35:33 +0100
parents 245b5efb07c2
children 0dda50ae4997
line wrap: on
line diff
--- a/src/graphics.h.in
+++ b/src/graphics.h.in
@@ -3315,8 +3315,16 @@
     void update_plotboxaspectratiomode (void) { sync_positions (); }
 
     void update_layer (void) { update_axes_layout (); }
-    void update_yaxislocation (void) { update_axes_layout (); }
-    void update_xaxislocation (void) { update_axes_layout (); }
+    void update_yaxislocation (void)
+      {
+        update_axes_layout ();
+        update_ylabel_position ();
+      }
+    void update_xaxislocation (void)
+      {
+        update_axes_layout ();
+        update_xlabel_position ();
+      }
 
     void update_xdir (void) { update_camera (); update_axes_layout (); }
     void update_ydir (void) { update_camera (); update_axes_layout (); }