plot_time_mesh#
- pydrad.visualize.plot_time_mesh(strand, quantities, y_grid, y_label, **kwargs)[source]#
Plot a given quantity as a function of some variable and time for a given strand.
- Parameters:
strand (
Strand)quantities (
list,tuple) – List of or single tuple of(str, array-like), wherestris the label and the second entry is the quantity to plot, already interpolated onto a common grid.y_grid (
Quantity) – Grid other than time to interpolate the quantity onto.y_label (
str) – Axis label for the other dimension against which to plot the quantity or quantities.norm (normalization or
dict, optional) – Colormap normalization or dictionary of normalizations with keys corresponding to the quantity names.cmap (
stror colormap instance ordict, optional) – Colormap to use for all quantities except velocity which will always use theRdBu_rdiverging colormap. Ifdict, mapping of colormaps to different quantity names.figsize (
tuple, optional) – Dimensions of the resulting figuretime_unit (
strorastropy.quantity.Unit, optional) – Unit for the time axisParameters (Optional)
-------------------
matplotlib.pcolormesh. (All other keyword arguments are passed to)