# HG changeset patch # User Ben Abbott # Date 1318818568 14400 # Node ID 6bd38ab573033cf3938e7cd6b36bb994f3c64bbe # Parent a0875c6cab7e9dd27ff8cbfc3f24930b50afaefa 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". diff -r a0875c6cab7e -r 6bd38ab57303 scripts/plot/private/__go_draw_axes__.m --- 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