Mercurial > octave-dspies
changeset 16975:47cc8e3d9183
Add demo to subplot.
script/plot/subplot.m: Add demo to illustrate bug # 39433.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sat, 13 Jul 2013 17:04:41 -0400 |
parents | 221e71d2aef0 |
children | 13affad7347c |
files | scripts/plot/subplot.m |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/subplot.m Sat Jul 13 10:46:43 2013 -0700 +++ b/scripts/plot/subplot.m Sat Jul 13 17:04:41 2013 -0400 @@ -364,3 +364,23 @@ %! ylabel ('ylabel (1,2,1)'); %! title ('title (1,2,1)'); +%!demo +%! x = 0:10; +%! subplot (221); +%! plot (x, rand (3, 11)) +%! title ('x & y labels & ticklabels'); +%! xlabel xlabel +%! ylabel ylabel +%! subplot (222); +%! plot (x, rand (3, 11)) +%! title ('no labels'); +%! axis ('nolabel','tic'); +%! subplot (223); +%! plot (x, rand (3, 11)) +%! title ('no labels'); +%! axis ('nolabel','tic'); +%! subplot (224); +%! plot (x, rand (3, 11)) +%! title ('x & y labels & ticklabels'); +%! xlabel xlabel +%! ylabel ylabel