changeset 21796:6c8c18f49eed

Remove gnuplot graphics view reset after plot for smooth rotation (bug #47974). * __gnuplot_draw_axes__.m: Only change the view after plotting if gnuplot was placed in map view. Also, rather than 'unset view', set the view to the map rotation angles 0,0.
author Daniel J Sebald <daniel.sebald@ieee.org>
date Wed, 01 Jun 2016 12:30:19 -0500
parents 973c16f1c9fc
children e5f083f9704e
files scripts/plot/util/private/__gnuplot_draw_axes__.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__gnuplot_draw_axes__.m	Wed Jun 01 11:36:42 2016 -0700
+++ b/scripts/plot/util/private/__gnuplot_draw_axes__.m	Wed Jun 01 12:30:19 2016 -0500
@@ -1676,9 +1676,9 @@
     fputs (plot_stream, "plot \"-\";\nInf Inf\ne\n");
   endif
 
-  ## Needed to allow mouse rotation with pcolor.
-  if (view_map)
-    fputs (plot_stream, "unset view;\n");
+  ## Needed to allow mouse rotation if gnuplot was put in map view.
+  if (view_map && rot_x == 0 && rot_z == 0)
+    fputs (plot_stream, "set view 0,0;\n");
   endif
 
   if (bg_is_set)