changeset 13710:6bd38ab57303

Use axes linewidth property for gnuplot axes with location "zero". * scripts/plot/private/__go_draw_axes__.m: Use axes linewidth property when drawing axes whose location is "zero".
author Ben Abbott <bpabbott@mac.com>
date Sun, 16 Oct 2011 22:29:28 -0400
parents a0875c6cab7e
children d6aaa28dff50
files scripts/plot/private/__go_draw_axes__.m
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/plot/private/__go_draw_axes__.m	Sun Oct 16 13:25:32 2011 -0700
+++ b/scripts/plot/private/__go_draw_axes__.m	Sun Oct 16 22:29:28 2011 -0400
@@ -1468,7 +1468,8 @@
             fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n",
                      axis_obj.tickdir);
             fputs (plot_stream, "set border 8;\n");
-            fputs (plot_stream, "set xzeroaxis lt -1 lw 1;\n");
+            fprintf (plot_stream, "set xzeroaxis lt -1 lw %f;\n",
+                     axis_obj.linewidth);
           endif
         elseif (strcmpi (axis_obj.yaxislocation, "left"))
           fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n",
@@ -1485,7 +1486,8 @@
             fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n",
                      axis_obj.tickdir);
             fputs (plot_stream, "set border 2;\n");
-            fputs (plot_stream, "set xzeroaxis lt -1 lw 1;\n");
+            fprintf (plot_stream, "set xzeroaxis lt -1 lw %f;\n",
+                     axis_obj.linewidth);
           endif
         else # yaxislocation == zero
           fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n",
@@ -1504,9 +1506,11 @@
             fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n",
                      axis_obj.tickdir);
             fputs (plot_stream, "unset border;\n");
-            fputs (plot_stream, "set xzeroaxis lt -1 lw 1;\n");
+            fprintf (plot_stream, "set xzeroaxis lt -1 lw %f;\n",
+                     axis_obj.linewidth);
           endif
-          fputs (plot_stream, "set yzeroaxis lt -1 lw 1;\n");
+          fprintf (plot_stream, "set yzeroaxis lt -1 lw %f;\n",
+                   axis_obj.linewidth);
         endif
       endif
     endif