Last change
on this file since 931 was
923,
checked in by aslmd, 12 years ago
|
UTIL PYTHON planetoplot_v2
PPCLASS AND PPPLOT
- added global plot settings in pp() objects
- self is returned for each method to allow e.g. one-line get + attribution
- added labeling of 1D plots
- fine-tuning of plot appearance (e.g. vector key)
- corrected a problem with plotin (same object can be referred to all along)
- fixed meanarea for 1D requests
PP.PY
- no more -f for pp.py (files are simply given as arguments!)
- added missing options to pp.py
- nice informative header
PP_RELOAD.PY
- pp_reload.py can now change colorbars and 1D markers
EXAMPLES
- general update of examples + few additions
- added a nice example tide with mixed 2D+1D plots
|
-
Property svn:executable set to
*
|
File size:
467 bytes
|
Line | |
---|
1 | #! /usr/bin/env python |
---|
2 | from ppclass import pp |
---|
3 | |
---|
4 | var1 = pp(\ |
---|
5 | file="/home/aymeric/Big_Data/DATAPLOT/diagfired.nc",\ |
---|
6 | var="ps",\ |
---|
7 | x=None,\ |
---|
8 | y=10.,\ |
---|
9 | t=2.) |
---|
10 | var1.get() |
---|
11 | |
---|
12 | var2 = pp(\ |
---|
13 | file="/home/aymeric/Big_Data/DATAPLOT/diagfired.nc",\ |
---|
14 | var="phisinit",\ |
---|
15 | x=None,\ |
---|
16 | y=10.,\ |
---|
17 | t=2.) |
---|
18 | var2.get() |
---|
19 | var2 = var2 / 3.72 |
---|
20 | |
---|
21 | S = var2.f(var1) |
---|
22 | |
---|
23 | S.p[0].marker = 'o' |
---|
24 | S.p[0].lstyle = '' |
---|
25 | S.p[0].ylabel = "Surface geopotential height (km)" |
---|
26 | S.p[0].ycoeff = 1./1000. |
---|
27 | S.filename = "function" |
---|
28 | S.makeplot() |
---|
29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.