Function to plot two time-lines in different axes (x/x2 or y/y2)
draw_2lines_time(ncfiles, values, varnames)
values= [timevardim]:[varangeA]:[varangeB]:[timeaxisfmt]:[timeaxis]:[figvarns]:[colors]:
[widths]:[styles]:[sizemarks]:[marks]:[graphtitle]:[labelaxis]:[legvals]:[figname]:[figkind]:[close]
[timevardim]: name of the common variable-dimension time
[varangeA]: ',' separated list of range (min,max) for A values ('None', automatic from
'variables_values'; 'Extrs' from values extremes)
[varangeB]: ',' separated list of range (min,max) for B values ('None', automatic from
'variables_values'; 'Extrs' from values extremes)
[timeaxisfmt]=[tkind];[tfmt]: format of the ticks for the time axis:
[kind]: kind of time to appear in the graph
'Nval': according to a given number of values as 'Nval',[Nval]
'exct': according to an exact time unit as 'exct',[tunit];
tunit= [Nunits],[tu]; [tu]= 'c': centuries, 'y': year, 'm': month,
'w': week, 'd': day, 'h': hour, 'i': minute, 's': second,
'l': milisecond
[tfmt]; desired format
[timeaxis]: which is the time axis in the plot ('x' or 'y')
[figvarns]: ',' separated list of names of the variables in the plot
[colors]: ',' list with color names of the lines for the variables ('None', automatic)
[widths]: ',' list with widths of the lines for the variables ('None', automatic)
[styles]: ',' list with the styles of the lines ('None', automatic)
[sizemarks]: ',' list with the size of the markers of the lines ('None', for 2.,2.)
[marks]: ';' list with the markers of the lines ('None', automatic)
[graphtitle]: title of the figure ('!' for spaces)
[labelaxis]: label in the figure of the common axis ('!' for spaces)
[legvals]=[locleg]|[fontsize]:
[locleg]: location of the legend (0, autmoatic)
1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',
5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',
9: 'upper center', 10: 'center'
[fontsize]: font size for the legend (auto for 12)
[figname]: name of the figure
[figkind]: kind of figure
[close]: Whether figure should be finished or not
ncfiles= ',' separated list of files to use
varnames= ',' separated list of variables names in the files to plot
R>
$ 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