changeset 20319:085c99b96aed

maint: Merge away extra head on default.
author John W. Eaton <jwe@octave.org>
date Thu, 25 Jun 2015 08:32:21 -0400
parents a0fab64685ab (current diff) 977853866d69 (diff)
children 6db2ea5556a4
files
diffstat 1 files changed, 9 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/util/private/__go_draw_axes__.m	Wed Jun 24 17:32:36 2015 -0400
+++ b/scripts/plot/util/private/__go_draw_axes__.m	Thu Jun 25 08:32:21 2015 -0400
@@ -1425,26 +1425,23 @@
     return;
   endif
   if (strcmpi (axis_obj.xdir, "reverse"))
-    xdir = "reverse";
-  else
-    xdir = "noreverse";
+    xlim = flip (xlim);
   endif
-  fprintf (plot_stream, "set xrange [%.15e:%.15e] %s;\n", xlim, xdir);
+
+  fprintf (plot_stream, "set xrange [%.15e:%.15e];\n", xlim);
   if (strcmpi (axis_obj.xaxislocation, "top"))
-    fprintf (plot_stream, "set x2range [%.15e:%.15e] %s;\n", xlim, xdir);
+    fprintf (plot_stream, "set x2range [%.15e:%.15e];\n", xlim);
   endif
 
   if (isempty (ylim))
     return;
   endif
   if (strcmpi (axis_obj.ydir, "reverse"))
-    ydir = "reverse";
-  else
-    ydir = "noreverse";
+    ylim = flip (ylim);
   endif
-  fprintf (plot_stream, "set yrange [%.15e:%.15e] %s;\n", ylim, ydir);
+  fprintf (plot_stream, "set yrange [%.15e:%.15e];\n", ylim);
   if (strcmpi (axis_obj.yaxislocation, "right"))
-    fprintf (plot_stream, "set y2range [%.15e:%.15e] %s;\n", ylim, ydir);
+    fprintf (plot_stream, "set y2range [%.15e:%.15e];\n", ylim);
   endif
 
   if (nd == 3)
@@ -1452,11 +1449,9 @@
       return;
     endif
     if (strcmpi (axis_obj.zdir, "reverse"))
-      zdir = "reverse";
-    else
-      zdir = "noreverse";
+      zlim = flip (zlim);
     endif
-    fprintf (plot_stream, "set zrange [%.15e:%.15e] %s;\n", zlim, zdir);
+    fprintf (plot_stream, "set zrange [%.15e:%.15e];\n", zlim);
   endif
 
   cmap = parent_figure_obj.colormap;