Mercurial > hg > octave-nkf
diff scripts/plot/private/__go_draw_axes__.m @ 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 | add91fa2691a |
children | 8cd08124cb59 |
line wrap: on
line diff
--- a/scripts/plot/private/__go_draw_axes__.m +++ b/scripts/plot/private/__go_draw_axes__.m @@ -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