|
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 |
|---|
| 2 | from ppclass import pp |
|---|
| 3 | |
|---|
| 4 | tpond = pp() |
|---|
| 5 | tpond.file = "/home/aymeric/Big_Data/DATAPLOT/diagfired.nc" |
|---|
| 6 | tpond.var = "temp" |
|---|
| 7 | tpond.t = "0.5" |
|---|
| 8 | tpond.x = "-180,180" |
|---|
| 9 | tpond.y = "-90,90" |
|---|
| 10 | tpond.verbose = True |
|---|
| 11 | tpond.compute = "meanarea" |
|---|
| 12 | tpond.superpose = True |
|---|
| 13 | tpond.legend = "mean with ponderation by mesh area" |
|---|
| 14 | tpond.getplot(extraplot=1) |
|---|
| 15 | |
|---|
| 16 | tnormal = pp() |
|---|
| 17 | tnormal << tpond |
|---|
| 18 | tnormal.compute = "mean" |
|---|
| 19 | tnormal.plotin = tpond |
|---|
| 20 | tnormal.legend = "simple mean (kind of wrong)" |
|---|
| 21 | tnormal.filename = "aire" |
|---|
| 22 | tnormal.getplot() |
|---|
| 23 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.