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 (~pydrad.parse.Strand) –

  • quantities (list, tuple) – List of or single tuple of (str, array-like), where str is the label and the second entry is the quantity to plot, already interpolated onto a common grid.

  • y_grid (~astropy.units.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 (str or colormap instance or dict, optional) – Colormap to use for all quantities except velocity which will always use the RdBu_r diverging colormap. If dict, mapping of colormaps to different quantity names.

  • figsize (tuple, optional) – Dimensions of the resulting figure

  • time_unit (str or astropy.quantity.Unit, optional) – Unit for the time axis

  • Parameters (Optional) –

  • -------------------

  • matplotlib.pcolormesh. (All other keyword arguments are passed to) –