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 | draw_2lines_time: |
---|
11 | </DIV> |
---|
12 | <DIV CLASS="valimg"> |
---|
13 | Function to plot two time-lines in different axes (x/x2 or y/y2) |
---|
14 | <IMG WIDTH="100%" SRC="figs/forcing_Amazonia_tas-wss.png"></IMG> |
---|
15 | </DIV> |
---|
16 | <DIV CLASS="valhelp"> |
---|
17 | draw_2lines_time(ncfiles, values, varnames)<BR> |
---|
18 | values= [timevardim]:[varangeA]:[varangeB]:[timeaxisfmt]:[timeaxis]:[figvarns]:[colors]:<BR> |
---|
19 | [widths]:[styles]:[sizemarks]:[marks]:[graphtitle]:[labelaxis]:[legvals]:[figname]:[figkind]:[close]<BR> |
---|
20 | [timevardim]: name of the common variable-dimension time<BR> |
---|
21 | [varangeA]: ',' separated list of range (min,max) for A values ('None', automatic from<BR> |
---|
22 | 'variables_values'; 'Extrs' from values extremes)<BR> |
---|
23 | [varangeB]: ',' separated list of range (min,max) for B values ('None', automatic from<BR> |
---|
24 | 'variables_values'; 'Extrs' from values extremes)<BR> |
---|
25 | [timeaxisfmt]=[tkind];[tfmt]: format of the ticks for the time axis:<BR> |
---|
26 | [kind]: kind of time to appear in the graph<BR> |
---|
27 | 'Nval': according to a given number of values as 'Nval',[Nval]<BR> |
---|
28 | 'exct': according to an exact time unit as 'exct',[tunit]; <BR> |
---|
29 | tunit= [Nunits],[tu]; [tu]= 'c': centuries, 'y': year, 'm': month,<BR> |
---|
30 | 'w': week, 'd': day, 'h': hour, 'i': minute, 's': second, <BR> |
---|
31 | 'l': milisecond<BR> |
---|
32 | [tfmt]; desired format<BR> |
---|
33 | [timeaxis]: which is the time axis in the plot ('x' or 'y')<BR> |
---|
34 | [figvarns]: ',' separated list of names of the variables in the plot<BR> |
---|
35 | [colors]: ',' list with color names of the lines for the variables ('None', automatic)<BR> |
---|
36 | [widths]: ',' list with widths of the lines for the variables ('None', automatic)<BR> |
---|
37 | [styles]: ',' list with the styles of the lines ('None', automatic)<BR> |
---|
38 | [sizemarks]: ',' list with the size of the markers of the lines ('None', for 2.,2.)<BR> |
---|
39 | [marks]: ';' list with the markers of the lines ('None', automatic)<BR> |
---|
40 | [graphtitle]: title of the figure ('!' for spaces)<BR> |
---|
41 | [labelaxis]: label in the figure of the common axis ('!' for spaces)<BR> |
---|
42 | [legvals]=[locleg]|[fontsize]: <BR> |
---|
43 | [locleg]: location of the legend (0, autmoatic)<BR> |
---|
44 | 1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR> |
---|
45 | 5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR> |
---|
46 | 9: 'upper center', 10: 'center'<BR> |
---|
47 | [fontsize]: font size for the legend (auto for 12)<BR> |
---|
48 | [figname]: name of the figure<BR> |
---|
49 | [figkind]: kind of figure<BR> |
---|
50 | [close]: Whether figure should be finished or not<BR> |
---|
51 | ncfiles= ',' separated list of files to use<BR> |
---|
52 | varnames= ',' separated list of variables names in the files to plot<BR> |
---|
53 | R> |
---|
54 | </DIV> |
---|
55 | <DIV CLASS="valins"> |
---|
56 | $ python ${pyHOME}/drawing.py -f forcing_Amazonia.nc,forcing_Amazonia.nc -o draw_2lines_time -S 'tstep:Excts:Excts:exct,5,y;%Y:x:tas,wss:r,b:2.:-,-:None:,;,:WFD!forcing!evolution!at!Amazonia:year:0|12:forcing_Amazonia_tas-wss:png:yes' -v Tair,Wind |
---|
57 | </DIV> |
---|
58 | </BODY> |
---|
59 | </HTML> |
---|
60 | |
---|