Mercurial > octave-nkf
comparison scripts/plot/private/__go_draw_axes__.m @ 13691:add91fa2691a
Force gnuplot axes to use a solid line.
* scripts/plot/private/__go_draw_axes__.m: When axes location is "zero" ensure
the axes is drawn as solid (regression from changeset 13322:16a706965ee0).
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Wed, 12 Oct 2011 20:06:12 -0400 |
parents | 16a706965ee0 |
children | 6bd38ab57303 |
comparison
equal
deleted
inserted
replaced
13690:f0daeb0eab45 | 13691:add91fa2691a |
---|---|
1466 fputs (plot_stream, "set border 9;\n"); | 1466 fputs (plot_stream, "set border 9;\n"); |
1467 else # xaxislocation == zero | 1467 else # xaxislocation == zero |
1468 fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n", | 1468 fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n", |
1469 axis_obj.tickdir); | 1469 axis_obj.tickdir); |
1470 fputs (plot_stream, "set border 8;\n"); | 1470 fputs (plot_stream, "set border 8;\n"); |
1471 fputs (plot_stream, "set xzeroaxis lt -1 lw 1;\n"); | |
1471 endif | 1472 endif |
1472 elseif (strcmpi (axis_obj.yaxislocation, "left")) | 1473 elseif (strcmpi (axis_obj.yaxislocation, "left")) |
1473 fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n", | 1474 fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n", |
1474 axis_obj.tickdir); | 1475 axis_obj.tickdir); |
1475 if (strcmpi (axis_obj.xaxislocation, "top")) | 1476 if (strcmpi (axis_obj.xaxislocation, "top")) |
1482 fputs (plot_stream, "set border 3;\n"); | 1483 fputs (plot_stream, "set border 3;\n"); |
1483 else # xaxislocation == zero | 1484 else # xaxislocation == zero |
1484 fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n", | 1485 fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n", |
1485 axis_obj.tickdir); | 1486 axis_obj.tickdir); |
1486 fputs (plot_stream, "set border 2;\n"); | 1487 fputs (plot_stream, "set border 2;\n"); |
1488 fputs (plot_stream, "set xzeroaxis lt -1 lw 1;\n"); | |
1487 endif | 1489 endif |
1488 else # yaxislocation == zero | 1490 else # yaxislocation == zero |
1489 fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n", | 1491 fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n", |
1490 axis_obj.tickdir); | 1492 axis_obj.tickdir); |
1491 if (strcmpi (axis_obj.xaxislocation, "top")) | 1493 if (strcmpi (axis_obj.xaxislocation, "top")) |
1500 fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n", | 1502 fprintf (plot_stream, "unset y2tics; set ytics %s nomirror\n", |
1501 axis_obj.tickdir); | 1503 axis_obj.tickdir); |
1502 fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n", | 1504 fprintf (plot_stream, "unset x2tics; set xtics %s nomirror\n", |
1503 axis_obj.tickdir); | 1505 axis_obj.tickdir); |
1504 fputs (plot_stream, "unset border;\n"); | 1506 fputs (plot_stream, "unset border;\n"); |
1505 endif | 1507 fputs (plot_stream, "set xzeroaxis lt -1 lw 1;\n"); |
1508 endif | |
1509 fputs (plot_stream, "set yzeroaxis lt -1 lw 1;\n"); | |
1506 endif | 1510 endif |
1507 endif | 1511 endif |
1508 endif | 1512 endif |
1509 | 1513 |
1510 if (strcmpi (axis_obj.visible, "off")) | 1514 if (strcmpi (axis_obj.visible, "off")) |