Mercurial > hg > octave-lyh
comparison scripts/plot/axis.m @ 17198:df4c4b7708a4
Add titles and clean-up plotting %!demos.
* scripts/plot/area.m, scripts/plot/axis.m, scripts/plot/bar.m,
scripts/plot/barh.m, scripts/plot/clabel.m, scripts/plot/colorbar.m,
scripts/plot/comet.m, scripts/plot/comet3.m, scripts/plot/contour.m,
scripts/plot/contour3.m, scripts/plot/contourf.m, scripts/plot/cylinder.m,
scripts/plot/ellipsoid.m, scripts/plot/errorbar.m, scripts/plot/ezplot.m,
scripts/plot/ezplot3.m, scripts/plot/ezpolar.m, scripts/plot/feather.m,
scripts/plot/fplot.m, scripts/plot/hold.m, scripts/plot/isosurface.m,
scripts/plot/legend.m, scripts/plot/loglog.m, scripts/plot/loglogerr.m,
scripts/plot/mesh.m, scripts/plot/meshc.m, scripts/plot/meshz.m,
scripts/plot/patch.m, scripts/plot/pcolor.m, scripts/plot/pie.m,
scripts/plot/pie3.m, scripts/plot/plot.m, scripts/plot/plot3.m,
scripts/plot/polar.m, scripts/plot/rectangle.m, scripts/plot/ribbon.m,
scripts/plot/rose.m, scripts/plot/scatter.m, scripts/plot/scatter3.m,
scripts/plot/semilogx.m, scripts/plot/semilogxerr.m, scripts/plot/semilogy.m,
scripts/plot/semilogyerr.m, scripts/plot/sombrero.m, scripts/plot/stem3.m,
scripts/plot/surf.m, scripts/plot/surfc.m, scripts/plot/surfl.m,
scripts/plot/title.m, scripts/plot/waterfall.m: Add titles and clean-up
plotting %!demos.
author | Rik <rik@octave.org> |
---|---|
date | Tue, 06 Aug 2013 14:34:20 -0700 |
parents | eaab03308c0b |
children | 87ba70043bfc |
comparison
equal
deleted
inserted
replaced
17197:b1fd3dc31c42 | 17198:df4c4b7708a4 |
---|---|
536 %!demo | 536 %!demo |
537 %! clf; | 537 %! clf; |
538 %! x = -10:0.1:10; | 538 %! x = -10:0.1:10; |
539 %! y = sin (x)./(1 + abs (x)) + 0.1*x - 0.4; | 539 %! y = sin (x)./(1 + abs (x)) + 0.1*x - 0.4; |
540 %! plot (x, y); | 540 %! plot (x, y); |
541 %! title ('no plot box'); | |
542 %! set (gca, 'xaxislocation', 'zero'); | 541 %! set (gca, 'xaxislocation', 'zero'); |
543 %! set (gca, 'yaxislocation', 'zero'); | 542 %! set (gca, 'yaxislocation', 'zero'); |
544 %! box off; | 543 %! box off; |
544 %! title ({'no plot box', 'xaxislocation = zero, yaxislocation = zero'}); | |
545 | 545 |
546 %!demo | 546 %!demo |
547 %! clf; | 547 %! clf; |
548 %! x = -10:0.1:10; | 548 %! x = -10:0.1:10; |
549 %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; | 549 %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; |
550 %! plot (x, y); | 550 %! plot (x, y); |
551 %! title ('no plot box'); | |
552 %! set (gca, 'xaxislocation', 'zero'); | 551 %! set (gca, 'xaxislocation', 'zero'); |
553 %! set (gca, 'yaxislocation', 'left'); | 552 %! set (gca, 'yaxislocation', 'left'); |
554 %! box off; | 553 %! box off; |
554 %! title ({'no plot box', 'xaxislocation = zero, yaxislocation = left'}); | |
555 | 555 |
556 %!demo | 556 %!demo |
557 %! clf; | 557 %! clf; |
558 %! x = -10:0.1:10; | 558 %! x = -10:0.1:10; |
559 %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; | 559 %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; |
560 %! plot (x, y); | 560 %! plot (x, y); |
561 %! title ('no plot box'); | 561 %! title ('no plot box'); |
562 %! set (gca, 'xaxislocation', 'zero'); | 562 %! set (gca, 'xaxislocation', 'zero'); |
563 %! set (gca, 'yaxislocation', 'right'); | 563 %! set (gca, 'yaxislocation', 'right'); |
564 %! box off; | 564 %! box off; |
565 %! title ({'no plot box', 'xaxislocation = zero, yaxislocation = right'}); | |
565 | 566 |
566 %!demo | 567 %!demo |
567 %! clf; | 568 %! clf; |
568 %! x = -10:0.1:10; | 569 %! x = -10:0.1:10; |
569 %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; | 570 %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; |
570 %! plot (x, y); | 571 %! plot (x, y); |
571 %! title ('no plot box'); | |
572 %! set (gca, 'xaxislocation', 'bottom'); | 572 %! set (gca, 'xaxislocation', 'bottom'); |
573 %! set (gca, 'yaxislocation', 'zero'); | 573 %! set (gca, 'yaxislocation', 'zero'); |
574 %! box off; | 574 %! box off; |
575 %! title ({'no plot box', 'xaxislocation = bottom, yaxislocation = zero'}); | |
575 | 576 |
576 %!demo | 577 %!demo |
577 %! clf; | 578 %! clf; |
578 %! x = -10:0.1:10; | 579 %! x = -10:0.1:10; |
579 %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; | 580 %! y = sin (x)./(1+abs (x)) + 0.1*x - 0.4; |
580 %! plot (x, y); | 581 %! plot (x, y); |
581 %! title ('no plot box'); | |
582 %! set (gca, 'xaxislocation', 'top'); | 582 %! set (gca, 'xaxislocation', 'top'); |
583 %! set (gca, 'yaxislocation', 'zero'); | 583 %! set (gca, 'yaxislocation', 'zero'); |
584 %! box off; | 584 %! box off; |
585 %! title ({'no plot box', 'xaxislocation = top, yaxislocation = zero'}); | |
585 | 586 |
586 %!test | 587 %!test |
587 %! hf = figure ("visible", "off"); | 588 %! hf = figure ("visible", "off"); |
588 %! unwind_protect | 589 %! unwind_protect |
589 %! plot (11:20, [21:24, NaN, -Inf, 27:30]); | 590 %! plot (11:20, [21:24, NaN, -Inf, 27:30]); |