source: lmdz_wrf/trunk/tools/documentation/plotting/TimeSeries.html @ 2734

Last change on this file since 2734 was 1574, checked in by lfita, 8 years ago

Fixing figure example

File size: 5.1 KB
Line 
1<HTML>
2  <HEAD>
3    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"/>
4    <LINK REL="stylesheet" TYPE="text/css" HREF="../PyNCplot.css"/>
5  </HEAD>
6
7  </HEAD>
8  <BODY>
9    <DIV CLASS="valheader">
10      Time Series plot
11    </DIV>
12    <DIV CLASS="valimg">
13      Plotting a Time Series with line-markers
14      <IMG WIDTH="100%" SRC="figs/TimeSeries_ua.png"></IMG>
15    </DIV>
16    <DIV CLASS="valhelp">
17    draw_timeSeries(filen, values, variables)<BR>
18    &nbsp;&nbsp;filen= name of the file<BR>
19    &nbsp;&nbsp;values= [dimvalues]:[sminv],[smaxv]:[gvarname]:[timetit]:[tkind]:[timefmt]:[title]:[legvals]:<BR>
20    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[gkind]:[colorlines]:[typelines]:[widthlines]:[pointtype]:[pointfreq]:[figclose]<BR>
21    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dimvalues]= ',' separated list of [dimname]|[slice]<BR>
22    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dimname]: name of dimension<BR>
23    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[slice]: value to take for the given dimension<BR>
24    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* [integer]: which value of the dimension<BR>
25    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* -1: all along the dimension<BR>
26    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* [beg]@[end]@[freq] slice from [beg] to [end] every [freq]<BR>
27    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* -9: last value of the dimension<BR>
28    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   [sminv],[smaxv]: minimum and maximum value for the lines or one value for each extreme:<BR>
29    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Srange': for full range<BR>
30    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Saroundmean@val': for mean-xtrm,mean+xtrm where xtrm = np.min(mean-min@val,max@val-mean)<BR>
31    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Saroundminmax@val': for min*val,max*val<BR>
32    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Saroundpercentile@val': for median-xtrm,median+xtrm where xtrm = np.min(median-percentile_(val),<BR>
33    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;percentile_(100-val)-median)<BR>
34    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Smean@val': for -xtrm,xtrm where xtrm = np.min(mean-min*@val,max*@val-mean)<BR>
35    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Smedian@val': for -xtrm,xtrm where xtrm = np.min(median-min@val,max@val-median)<BR>
36    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Spercentile@val': for -xtrm,xtrm where xtrm = np.min(median-percentile_(val),<BR>
37    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;percentile_(100-val)-median)<BR>
38    &nbsp;&nbsp;&nbsp;&nbsp;[gvarname]: name of the variable to appear in the graph<BR>
39    &nbsp;&nbsp;&nbsp;&nbsp;[timetit]: title of the time axis (assumed x-axis, '|' for spaces)<BR>
40    &nbsp;&nbsp;&nbsp;&nbsp;[tkind]: kind of time to appear in the graph (assumed x-axis)<BR>
41    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Nval': according to a given number of values as 'Nval',[Nval]<BR>
42    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'exct': according to an exact time unit as 'exct',[tunit]; <BR>
43    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;tunit= [Nunits],[tu]; [tu]= 'c': centuries, 'y': year, 'm': month,<BR>
44    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'w': week, 'd': day, 'h': hour, 'i': minute, 's': second, <BR>
45    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'l': milisecond<BR>
46    &nbsp;&nbsp;&nbsp;&nbsp;[timefmt]: format of the time labels (C-like)<BR>
47    &nbsp;&nbsp;&nbsp;&nbsp;[title]: title of the graphic ('|' for spaces)<BR>
48    &nbsp;&nbsp;&nbsp;&nbsp;[legvals]=[locleg]|[fontsize]: <BR>
49    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[locleg]: location of the legend (0, autmoatic)<BR>
50    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR>
51    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR>
52    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9: 'upper center', 10: 'center'<BR>
53    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[fontsize]: font size for the legend (auto for 12)<BR>
54    &nbsp;&nbsp;&nbsp;&nbsp;[gkind]: kind of graphical output<BR>
55    &nbsp;&nbsp;&nbsp;&nbsp;[colorlines]: ',' list of colors for the lines, 'None' for automatic, single<BR>
56    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value all the same<BR>
57    &nbsp;&nbsp;&nbsp;&nbsp;[pointtype]: ',' list of type of points for the lines, 'None' for automatic, single<BR>
58    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;value all the same<BR>
59    &nbsp;&nbsp;&nbsp;&nbsp;[pointfreq]: frequency of point plotting, 'all' for all time steps<BR>
60    &nbsp;&nbsp;&nbsp;&nbsp;[figclose]: whether figure should be closed or not<BR>
61    &nbsp;&nbsp;variables= [varname],[timename] names of variable and variable with times<BR>
62    </DIV>
63    <DIV CLASS="valins">
64      $ python ${pyHOME}/drawing.py -o draw_TimeSeries -f ERAI_pl199501_131-132.nc -S 'lon|240,lat|120,time|-1,lev|0:Srange,Srange:ua:date|($[MM]^{[DD]}$):exct,15,d:$%m^{%d}$:January|1995|ERA-Interim|x-wind|at|i=240,|j=120,|k=0:ua:0|12:png:r:-:2:x:2:20:yes' -v var131,time
65    </DIV>
66  </BODY>
67</HTML>
68
Note: See TracBrowser for help on using the repository browser.