spacepy.pybats.dgcpm.Lslice¶
- class spacepy.pybats.dgcpm.Lslice(filename, *args, **kwargs)[source]¶
Open an L-Slice output file.
Methods
add_ltut
([target, loc, cmap, zlim, ...])Plot log(density) as a contour against local time (y-axis) and universal time (x-axis) using the PyBats target method of other standard plotting methods.
Attributes
- add_ltut(target=None, loc=111, cmap='Greens_r', zlim=[1, 1000], add_cbar=True, clabel='Density $cm^{-3}$', xlabel='full', ylim=[4, 20], title=None, grid=True, ntick=5)[source]¶
Plot log(density) as a contour against local time (y-axis) and universal time (x-axis) using the PyBats target method of other standard plotting methods. Four items are returned: the Matplotlib Figure, Axes, Mesh, and ColorBar objects used (if cbar is set to False, the returned ColorBar object is simply set to False.)
Kwarg
Description
target
Select plot destination. Defaults to new figure/axis.
loc
The location of any generated subplots. Default is 111.
add_cbar
Toggles the automatic colorbar. Default is**True**.
cmap
Selects Matplotlib color table. Defaults to Greens_r.
zlim
Limits for z-axis. Defaults to [0.1, 1000]
ylim
Sets the MLT range on the y-axis. Defaults to [4,20].
clabel
Sets colorbar label. Defaults to units.
xlabel
Sets x-axis labels, use ‘full’, ‘ticks’, or None.
title
Sets axis title; defaults to None.
grid
Show white dotted grid? Defaults to True
ntick
Number of attempted cbar ticks. Defaults to 5.
- attrs: collections.abc.Mapping¶