Mercurial > hg > ltpda
comparison m-toolbox/test/test_plotters.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 mc; | |
2 | |
3 %% Single plots | |
4 | |
5 ts = ao(plist('tsfcn', 'randn(size(t))', 'fs', 10, 'nsecs', 10, 'yunits', 'V')); | |
6 fs = ts.psd(plist('scale', 'asd')); | |
7 xy = ao(1:10, 1:10, plist('yunits', 'm', 'xunits', 'V')); | |
8 | |
9 %% aoplotter | |
10 | |
11 ap = aoplotter(ts,fs,xy); | |
12 ap.singlePlots | |
13 | |
14 %% axisFontSize | |
15 | |
16 ap = aoplotter(ts,fs,xy, plist('axis fontsize', 8)); | |
17 ap.singlePlots; | |
18 | |
19 %% axis font weight | |
20 | |
21 ap = aoplotter(ts,fs,xy, plist('axis fontweight', 'light')); | |
22 ap.singlePlots; | |
23 | |
24 %% label font size | |
25 | |
26 ap = aoplotter(ts,fs,xy, plist('label fontsize', 8)); | |
27 ap.singlePlots; | |
28 | |
29 | |
30 %% axis font name | |
31 | |
32 ap = aoplotter(ts,fs,xy, plist('axis fontname', 'monaco')); | |
33 ap.singlePlots; | |
34 | |
35 %% axis linewidth | |
36 | |
37 ap = aoplotter(ts,fs,xy, plist('axis linewidth', 4)); | |
38 ap.singlePlots; | |
39 | |
40 %% grid linestyle | |
41 | |
42 ap = aoplotter(ts,fs,xy, plist('grid linestyle', ':')); | |
43 ap.singlePlots; | |
44 | |
45 %% minor grid linestyle | |
46 | |
47 ap = aoplotter(ts,fs,xy, plist('minor grid linestyle', '-')); | |
48 ap.singlePlots; | |
49 | |
50 %% show x grid | |
51 | |
52 ap = aoplotter(ts,fs,xy, plist('show x grid', false)); | |
53 ap.singlePlots; | |
54 | |
55 %% show x minor grid | |
56 ap = aoplotter(ts,fs,xy, plist('show x minor grid', false)); | |
57 ap.singlePlots; | |
58 | |
59 %% show y grid | |
60 | |
61 ap = aoplotter(ts,fs,xy, plist('show y grid', false)); | |
62 ap.singlePlots; | |
63 | |
64 %% show y minor grid | |
65 ap = aoplotter(ts,fs,xy, plist('show y minor grid', false)); | |
66 ap.singlePlots; | |
67 | |
68 %% linestyle | |
69 ap = aoplotter(ts,fs,xy, plist('linestyle', '--')); | |
70 ap.singlePlots; | |
71 | |
72 %% linewidth | |
73 ap = aoplotter(ts,fs,xy, plist('linewidth', 4)); | |
74 ap.singlePlots; | |
75 | |
76 %% markersize | |
77 ap = aoplotter(ts,fs,xy, plist('marker size', 14, 'marker', 'o')); | |
78 ap.singlePlots; | |
79 | |
80 | |
81 %% plotinfoOverride | |
82 | |
83 ts.setPlotinfo(plist('color', 'g')); | |
84 ap = aoplotter(ts,fs,xy, plist('plotinfo override', true)); | |
85 ap.singlePlots; | |
86 | |
87 %% Legend font size | |
88 | |
89 ap = aoplotter(ts,fs,xy, plist('legend fontsize', 8)); | |
90 ap.singlePlots; | |
91 | |
92 %% Legend location | |
93 ap = aoplotter(ts,fs,xy, plist('legend location', 'best', 'include legend', false)); | |
94 ap.singlePlots; | |
95 | |
96 %% Legend location | |
97 ts.setDescription('my nice ao'); | |
98 ap = aoplotter(ts,fs,xy, plist('include description', true)); | |
99 ap.singlePlots; | |
100 |