source: lmdz_wrf/trunk/tools/documentation/plotting/Nlines.html @ 1559

Last change on this file since 1559 was 1477, checked in by lfita, 8 years ago

Adding recent improvements to the documentation:

'*' for no labels
'vrange' for range of the plot

File size: 5.0 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      Nlines
11    </DIV>
12    <DIV CLASS="valimg">
13      Plotting a series of multiples 1D curves which share one dimension
14      <IMG WIDTH="100%" SRC="figs/Nlines_hurs_wrfout_tturb-xmean-last.png"></IMG>
15    </DIV>
16    <DIV CLASS="valhelp">
17    draw_lines(ncfilens, values, varname):<BR>
18    &nbsp;&nbsp;ncfilens= [filen] ',' separated list of netCDF files<BR>
19    &nbsp;&nbsp;values= [dimvname]:[valuesaxis]:[dimtit]:[dimxyfmt]:[vrange]:[leglabels]:[vtit]:[title]:[legvals]:[colns]:[lines]<BR>
20    &nbsp;&nbsp;&nbsp;&nbsp;[points]:[lwdths]:[psizes]:[freqv]:[figname]:[graphk]:[close]<BR>
21    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dimvname]: ',' list of names of the variable with he values of the common dimension<BR>
22    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[valuesaxis]: which axis will be used for the values ('x', or 'y')<BR>
23    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dimtit]: title for the common dimension<BR>
24    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dimxyfmt]=[dxs],[dxf],[Ndx],[ordx],[dys],[dyf],[Ndy],[ordx]: format of the values at each axis (or 'auto')<BR>
25    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dxs]: style of x-axis ('auto' for 'pretty')<BR>
26    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Nfix', values computed at even 'Ndx'<BR>
27    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Vfix', values computed at even 'Ndx' increments<BR>
28    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'pretty', values computed following aprox. 'Ndx' at 'pretty' intervals (2.,2.5,4,5,10)<BR>
29    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dxf]: format of the labels at the x-axis ('auto' for '%5g')<BR>
30    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Ndx]: Number of ticks at the x-axis ('auto' for 5)<BR>
31    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[ordx]: angle of orientation of ticks at the x-axis ('auto' for horizontal)<BR>
32    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dys]: style of y-axis ('auto' for 'pretty')<BR>
33    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dyf]: format of the labels at the y-axis ('auto' for '%5g')<BR>
34    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Ndy]: Number of ticks at the y-axis ('auto' for 5)<BR>
35    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[ordy]: angle of orientation of ticks at the y-axis ('auto' for horizontal)<BR>
36    &nbsp;&nbsp;&nbsp;&nbsp;[vrange]=[ymin],[ymax] range for the plot ('auto' for current range of values)
37    &nbsp;&nbsp;&nbsp;&nbsp;[leglabels]: ',' separated list of names for the legend ('!' for spaces, '*' for no label)<BR>
38    &nbsp;&nbsp;&nbsp;&nbsp;[vartit]: name of the variable in the graph<BR>
39    &nbsp;&nbsp;&nbsp;&nbsp;[title]: title of the plot ('|' for spaces)<BR>
40    &nbsp;&nbsp;&nbsp;&nbsp;[legvals]=[locleg]|[fontsize]: <BR>
41    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[locleg]: location of the legend (0, autmoatic)<BR>
42    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR>
43    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR>
44    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9: 'upper center', 10: 'center'<BR>
45    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[fontsize]: font size for the legend (auto for 12)<BR>
46    &nbsp;&nbsp;&nbsp;&nbsp;[colns]= ',' list of color names ('None' for automatic, single value for all the same)<BR>
47    &nbsp;&nbsp;&nbsp;&nbsp;[lines]= ',' list of style of lines ('None' for automatic, single value for all the same)<BR>
48    &nbsp;&nbsp;&nbsp;&nbsp;[points]= '@' list of style of points ('None' for automatic, single value for all the same)<BR>
49    &nbsp;&nbsp;&nbsp;&nbsp;[lwdths]= ',' list of withs of lines ('None' for automatic, single value for all the same)<BR>
50    &nbsp;&nbsp;&nbsp;&nbsp;[psizes]= ',' list of size of points ('None' for automatic, single value for all the same)<BR>
51    &nbsp;&nbsp;&nbsp;&nbsp;[freqv]= frequency of values ('all' for all values)<BR>
52    &nbsp;&nbsp;&nbsp;&nbsp;[figname]= name of the figure<BR>
53    &nbsp;&nbsp;&nbsp;&nbsp;[graphk]: kind of the graphic<BR>
54    &nbsp;&nbsp;&nbsp;&nbsp;[close]: should figure be closed (finished)<BR>
55    &nbsp;&nbsp;varname= variable to plot<BR>
56    </DIV>
57    <DIV CLASS="valins">
58      $ python ${pyHOME}/drawing.py -f WRF/current/hurs_wrfout_tturb_xmean_last.nc,WRF/micro1/hurs_wrfout_tturb_xmean_last.nc,WRF/micro2/hurs_wrfout_tturb_xmean_last.nc,WRF_LMDZ/AR40/hurs_wrfout_tturb_xmean_last.nc,WRF_LMDZ/NPv31/hurs_wrfout_tturb_xmean_last.nc,LMDZ/AR40/hurs_reproj-histins_tturb_xmean_last.nc,LMDZ/NPv31/hurs_reproj-histins_tturb_xmean_last.nc -o draw_lines -S 'lat:x:lat ($degrees\ North$):auto:auto:wcurr,wmp1,wmp2,wlmdza,wlmdzb,lmdza,lmdzb:hurs:all model-experiments meridional hurs$_{[tturb\ xmean\ last]}$:0|auto:None:-:,:2.:2.:all:Nlines_hurs_wrfout_tturb-xmean-last:png:True' -v hursturbmean
59    </DIV>
60  </BODY>
61</HTML>
62
Note: See TracBrowser for help on using the repository browser.