source: lmdz_wrf/trunk/tools/documentation/plotting/pointsZval.html @ 1553

Last change on this file since 1553 was 1465, checked in by lfita, 8 years ago

Adding:

  • `draw_2D_shad_2cont': plotting three fields, one with shading and the other two with contour lines
  • `draw_ptZvals': Function to plot a given list of points by their Z value and a colorbar
  • `draw_vectors': Function to plot wind vectors
File size: 6.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      point Z value
11    </DIV>
12    <DIV CLASS="valimg">
13      Plotting points by their Z value according to a colorbar
14      <IMG WIDTH="100%" SRC="figs/pointsZval.png"></IMG>
15    </DIV>
16    <DIV CLASS="valhelp">
17      draw_ptZvals(ncfile, values, variable)<BR>
18      &nbsp;&nbsp;ncfile= netCDF file to use<BR>
19      &nbsp;&nbsp;values= [fvname]:[XYvar]:[dimxyfmt]:[pointype]:[pointsize]:[graphlimits]:[nxtype]:<BR>
20      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[legend]:[figuretitle]:[cbarv]:[mapvalue]:[kindfig]:[figclose]<BR>
21      &nbsp;&nbsp;&nbsp;&nbsp;[fvname]: name of the variable in the graph<BR>
22      &nbsp;&nbsp;&nbsp;&nbsp;[XYvar]: [x],[y] variable names<BR>
23      &nbsp;&nbsp;&nbsp;&nbsp;[dimxyfmt]=[dxs],[dxf],[Ndx],[ordx],[dys],[dyf],[Ndy],[ordy]: format of the values at each axis ('auto', for <BR>
24      &nbsp;&nbsp;&nbsp;&nbsp;'pretty' at both axes)<BR>
25      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dxs]: style of x-axis ('auto' for 'pretty')<BR>
26      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'Nfix', values computed at even 'Ndx'<BR>
27      &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;'pretty', values computed following aprox. 'Ndx' at 'pretty' intervals 2.,2.5,4,5,10)<BR>
29      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dxf]: format of the labels at the x-axis<BR>
30      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Ndx]: Number of ticks at the x-axis<BR>
31      &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;[dys]: style of y-axis ('auto' for 'pretty')<BR>
33      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[dyf]: format of the labels at the y-axis<BR>
34      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[Ndy]: Number of ticks at the y-axis<BR>
35      &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;[ptype]: type of the point<BR>
37      &nbsp;&nbsp;&nbsp;&nbsp;[ptsize]: size of the point<BR>
38      &nbsp;&nbsp;&nbsp;&nbsp;[graphlimits]: minX,minY,maxX,maxY limits of the graph 'None' for the full size<BR>
39      &nbsp;&nbsp;&nbsp;&nbsp;[nxtype]: minimum and maximum type<BR>
40      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'auto': values taken from the extrems of the data<BR>
41      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[min],[max]: given minimum and maximum values<BR>
42      &nbsp;&nbsp;&nbsp;&nbsp;[legend]: kind of legend<BR>
43      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'None': no legend<BR>
44      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'ptlabel',[varlabels],[fontsize],[xoffset],[yoffset]: label at the side of the point<BR>
45      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[varlabels]: variable in file with the labels for the points<BR>
46      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[fontsize]: font-size of the label<BR>
47      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[xoffset]: x-offset of the label respect the point in pixels<BR>
48      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[yoffset]: y-offset of the label respect the point in pixels<BR>
49      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'legend',[varlabels],[location],[fontsize]: standard legend<BR>
50      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[varlabels]: variable in file with the labels for the points<BR>
51      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[location]: location of the legend ('0', for automatic)<BR>
52      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',<BR>
53      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',<BR>
54      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;9: 'upper center', 10: 'center'<BR>
55      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[fontsize]: size of the font for the legend ('auto' for 12)<BR>
56      &nbsp;&nbsp;&nbsp;&nbsp;[figtitle]: title of the figure ('!' for spaces)<BR>
57      &nbsp;&nbsp;&nbsp;&nbsp;[colorbarv]: list with the parameters of the color bar [colorbar, cbarfmt, cbaror]<BR>
58      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;colorbar= name of the color bar to use<BR>
59      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cbarfmt= format of the numbers in the colorbar ('auto' for %6g)<BR>
60      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cbaror= orientation of the colorbar ('auto' for vertical)<BR>
61      &nbsp;&nbsp;&nbsp;&nbsp;[mapv]: map characteristics: [proj],[res]<BR>
62      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;see full documentation: <A HREF="http://matplotlib.org/basemap" TARGET="_blank" CLASS="lc">http://matplotlib.org/basemap/</A><BR>
63      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[proj]: projection<BR>
64      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'cyl', cilindric<BR>
65      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'lcc', lambert-conformal<BR>
66      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[res]: resolution:<BR>
67      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'c', crude<BR>
68      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'l', low<BR>
69      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'i', intermediate<BR>
70      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'h', high<BR>
71      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;* 'f', full<BR>
72      &nbsp;&nbsp;&nbsp;&nbsp;[kfig]: kind of figure<BR>
73      &nbsp;&nbsp;&nbsp;&nbsp;[closefig]: boolean value whether figure should be close (finish) or not<BR>
74      &nbsp;&nbsp;variable= name of the variable to plot<BR>
75    </DIV>
76    <DIV CLASS="valins">
77      $ python ${pyHOME}/drawing.py -o draw_ptZvals -f MountainPeaks.nc -S 'height:lon,lat:auto:x:5.:-180.,-90.,180.,90.:0,9000.:ptlabel,name,8,0,4:Mountain!peaks:rainbow,auto,auto:cyl,l:png:yes' -v height<BR>
78      `MountainPeaks.nc' File generated with <A HREF="create_TopoValues.py" TAREGET="_blank" CLASS="lc">create_TopoValues.py</A>
79    </DIV>
80  </BODY>
81</HTML>
82
Note: See TracBrowser for help on using the repository browser.