diff scripts/plot/__go_draw_axes__.m @ 6724:388747e3d96b

[project @ 2007-06-14 17:04:52 by jwe]
author jwe
date Thu, 14 Jun 2007 17:04:53 +0000
parents 9197bb0a2738
children 751f340d486c
line wrap: on
line diff
--- a/scripts/plot/__go_draw_axes__.m	Thu Jun 14 10:16:35 2007 +0000
+++ b/scripts/plot/__go_draw_axes__.m	Thu Jun 14 17:04:53 2007 +0000
@@ -525,14 +525,17 @@
 	  lpos = obj.position;
 	  label = obj.string;
 	  halign = obj.horizontalalignment;
+	  angle = obj.rotation;
 	  if (nd == 3)
-	    fprintf (plot_stream, "set label \"%s\" at %g,%g,%g %s;\n",
+	    fprintf (plot_stream,
+		     "set label \"%s\" at %g,%g,%g %s rotate by %f;\n",
 		     undo_string_escapes (label),
-		     lpos(1), lpos(2), lpos(3), halign);
+		     lpos(1), lpos(2), lpos(3), halign, angle);
 	  else
-	    fprintf (plot_stream, "set label \"%s\" at %g,%g %s;\n",
+	    fprintf (plot_stream,
+		     "set label \"%s\" at %g,%g %s rotate by %f;\n",
 		     undo_string_escapes (label),
-		     lpos(1), lpos(2), halign);
+		     lpos(1), lpos(2), halign, angle);
 	  endif
 
 	otherwise