source: trunk/UTIL/PYTHON/planetoplot_v2/examples/ppclass_reference/aire.py @ 1247

Last change on this file since 1247 was 1050, checked in by aslmd, 12 years ago

UTIL PYTHON planetoplot_v2

RENAMED VARIABLES TO BE SIMPLER or COMPLIANT WITH MATPLOTLIB

colorb >> colorbar
lstyle >> linestyle
label >> legend

stridevecx >> svx
stridevecy >> svy
stridex >> sx
stridey >> sy
stridez >> sz
stridet >> st

(in ppplot only)
field >> f
absc >> x
ordi >> y
addvecx >> vx
addvecy >> vy
addontour >> c

ALSO added (same reason of compatibility)

  • the possibility to call ppplot.show() as in matplotlib
  • a shortcut method for a ppplot object: the so-called .makeshow()
  • Property svn:executable set to *
File size: 518 bytes
Line 
1#! /usr/bin/env python
2from ppclass import pp
3
4tpond = pp()
5tpond.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc"
6tpond.var = "temp"
7tpond.t = "0.5"
8tpond.x = "-180,180"
9tpond.y = "-90,90"
10tpond.verbose = True
11tpond.compute = "meanarea"
12tpond.superpose = True
13tpond.legend = "mean with ponderation by mesh area"
14tpond.getplot(extraplot=1)
15
16tnormal = pp()
17tnormal << tpond
18tnormal.compute = "mean"
19tnormal.plotin = tpond
20tnormal.legend = "simple mean (kind of wrong)"
21tnormal.filename = "aire"
22tnormal.getplot()
23
Note: See TracBrowser for help on using the repository browser.