pencil_ccyang.plot
Functions
|
Plots the space-time diagram of a 1D average. |
|
Plots diagnostic variable(s) as a function of time. |
Module Contents
- pencil_ccyang.plot.avg1d(name, datadir='./data', logscale=False, plane='xy', tsize=None, **kwargs)
Plots the space-time diagram of a 1D average.
- Positional Arguments:
- name
Name of the average to be plotted.
- Keyword Arguments:
datadir – Name of the data directory.
logscale – Take logarithm or not.
plane – Plane of the average.
tsize – Number of regular time intervals; if None, it is automatically determined.
**kwargs – Sent to matplotlib.pyplot.imshow.
- pencil_ccyang.plot.time_series(diagnostics, datadir='./data', trange=None, xlog=False, ylog=False)
Plots diagnostic variable(s) as a function of time.
- Positional Arguments:
- diagnostics
(A list of) diagnostic variable(s).
- Keyword Arguments:
datadir – Name of the data directory.
trange – A tuple of (tmin, tmax) for the time range to be shown; if None, all time is shown.
xlog – A boolean value for turning on or off logarithmic scale in x axis.
ylog – A boolean value for turning on or off logarithmic scale in y axis.