Last change
on this file since 1004 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:
528 bytes
|
Rev | Line | |
---|
[910] | 1 | #! /usr/bin/env python |
---|
| 2 | from ppclass import pp |
---|
| 3 | |
---|
| 4 | prof = pp() |
---|
| 5 | prof.verbose = True |
---|
| 6 | prof.file = "/home/aymeric/Big_Data/case_night.nc" |
---|
| 7 | prof.var = "tk" |
---|
| 8 | prof.t = [10.,20.] |
---|
| 9 | prof.x = 30 |
---|
| 10 | prof.y = 30 |
---|
[923] | 11 | prof.filename = "vertpress" |
---|
[910] | 12 | |
---|
| 13 | prof.get() |
---|
| 14 | prof.superpose = True |
---|
| 15 | prof.defineplot() |
---|
| 16 | prof.p[0].logy = True |
---|
| 17 | prof.makeplot() |
---|
| 18 | |
---|
| 19 | ## a small workaround if one wants to change axis names |
---|
| 20 | ## (it is difficult because of swapping axis) |
---|
| 21 | prof.p[0].swaplab = False |
---|
| 22 | prof.p[0].xlabel = "Temperature (K)" |
---|
| 23 | prof.p[0].ylabel = "Pressure (Pa)" |
---|
| 24 | prof.makeplot() |
---|
| 25 | |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | |
---|
Note: See
TracBrowser
for help on using the repository browser.