Mercurial > hg > ltpda
comparison m-toolbox/html_help/help/ug/ao_plot_content.html @ 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 <!-- $Id: ao_plot_content.html,v 1.5 2009/09/29 22:27:12 ingo Exp $ --> | |
2 <p> | |
3 The data in an AO can be plotted using the <tt>iplot</tt> method. | |
4 </p> | |
5 <p> | |
6 The <tt>iplot</tt> method provides an advanced plotting interface for AOs which tries to make good use of all the information | |
7 contained within the input AOs. For example, if the <tt>xunits</tt> and <tt>yunits</tt> fields of the input AOs are set, these labels | |
8 are used on the plot labels. | |
9 </p> | |
10 | |
11 <p> | |
12 In addition, <tt>iplot</tt> can be configured using a input <tt>plist</tt>. The following examples show some of the | |
13 possible ways to use <tt>iplot</tt> | |
14 </p> | |
15 | |
16 <div class="fragment"><pre> | |
17 >> a1 = ao(plist(<span class="string">'tsfcn'</span>, <span class="string">'sin(2*pi*0.3*t) + randn(size(t))'</span>, <span class="string">'fs'</span>, 10, <span class="string">'nsecs'</span>, 20)) | |
18 ----------- ao 01: a1 ----------- | |
19 | |
20 name: None | |
21 data: (0,0.887479404587351) (0.1,-0.449797172615395) (0.2,0.479022102390939) ... | |
22 -------- tsdata 01 ------------ | |
23 | |
24 fs: 10 | |
25 x: [200 1], double | |
26 y: [200 1], double | |
27 dx: [0 0], double | |
28 dy: [0 0], double | |
29 xunits: [s] | |
30 yunits: [] | |
31 nsecs: 20 | |
32 t0: 1970-01-01 00:00:00.000 | |
33 ------------------------------- | |
34 | |
35 hist: ao / ao / SId: fromTSfcn ... $-->$Id: ao ... S | |
36 mdlfile: empty | |
37 description: | |
38 UUID: 67d31c2f-8ee5-42ba-a96b-cfb288ecc9ea | |
39 --------------------------------- | |
40 | |
41 >> a1.data | |
42 -------- tsdata 01 ------------ | |
43 | |
44 fs: 10 | |
45 x: [200 1], double | |
46 y: [200 1], double | |
47 dx: [0 0], double | |
48 dy: [0 0], double | |
49 xunits: [s] | |
50 yunits: [] | |
51 nsecs: 20 | |
52 t0: 1970-01-01 00:00:00.000 | |
53 ------------------------------- | |
54 </pre></div> | |
55 <p> Creates a time-series AO. If we look at the data object contained in this AO, we see that the <tt>xunits</tt> | |
56 are set to the defaults of seconds [s].</p> | |
57 <p>If we plot this object with <tt>iplot</tt> we see these units reflected in the x and y axis labels.</p> | |
58 <div class="fragment"><pre> | |
59 >> iplot(a1) | |
60 </pre></div> | |
61 | |
62 <img src="images/ao_iplot_eg1.png" alt="AO iplot eg1" border="3" width="600px"> | |
63 | |
64 <p>We also see that the time-origin of the data (<tt>t0</tt> field of the <tt>tsdata</tt> class) is displayed as the plot title.</p> | |
65 | |
66 | |
67 | |
68 | |
69 |