Mercurial > hg > octave-nkf
comparison scripts/plot/axis.m @ 13322:16a706965ee0
Allow the axis box to be turned off for the gnuplot backend.
* scripts/plot/private/__go_draw_axes__.m: Properly set/unset gnuplot border.
* scripts/plot/axis.m: Add demo.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Tue, 11 Oct 2011 18:08:44 -0400 |
parents | 8aaaef4a69aa |
children | ec79cd8359c5 |
comparison
equal
deleted
inserted
replaced
13321:5ea207067ee5 | 13322:16a706965ee0 |
---|---|
500 %!demo | 500 %!demo |
501 %! clf | 501 %! clf |
502 %! loglog (1:20, "-s") | 502 %! loglog (1:20, "-s") |
503 %! axis tight | 503 %! axis tight |
504 | 504 |
505 %!demo | |
506 %! x = -10:0.1:10; | |
507 %! y = sin(x)./(1+abs(x)) + x*0.1 - .4; | |
508 %! plot (x, y) | |
509 %! title ("no plot box") | |
510 %! set (gca, "xaxislocation", "zero") | |
511 %! set (gca, "yaxislocation", "zero") | |
512 %! box off | |
513 | |
514 %!demo | |
515 %! x = -10:0.1:10; | |
516 %! y = sin(x)./(1+abs(x)) + x*0.1 - .4; | |
517 %! plot (x, y) | |
518 %! title ("no plot box") | |
519 %! set (gca, "xaxislocation", "zero") | |
520 %! set (gca, "yaxislocation", "left") | |
521 %! box off | |
522 | |
523 %!demo | |
524 %! x = -10:0.1:10; | |
525 %! y = sin(x)./(1+abs(x)) + x*0.1 - .4; | |
526 %! plot (x, y) | |
527 %! title ("no plot box") | |
528 %! set (gca, "xaxislocation", "zero") | |
529 %! set (gca, "yaxislocation", "right") | |
530 %! box off | |
531 | |
532 %!demo | |
533 %! x = -10:0.1:10; | |
534 %! y = sin(x)./(1+abs(x)) + x*0.1 - .4; | |
535 %! plot (x, y) | |
536 %! title ("no plot box") | |
537 %! set (gca, "xaxislocation", "bottom") | |
538 %! set (gca, "yaxislocation", "zero") | |
539 %! box off | |
540 | |
541 %!demo | |
542 %! x = -10:0.1:10; | |
543 %! y = sin(x)./(1+abs(x)) + x*0.1 - .4; | |
544 %! plot (x, y) | |
545 %! title ("no plot box") | |
546 %! set (gca, "xaxislocation", "top") | |
547 %! set (gca, "yaxislocation", "zero") | |
548 %! box off | |
549 |