PlasmaCalcs.plotting.scatter.xarray_scatter_max

PlasmaCalcs.plotting.scatter.xarray_scatter_max(array, x, y, *, t=None, **kw_scatter)
use XarrayScatter to plt.scatter() a single marker, at the argmax of array.
default style: {**DEFAULTS.PLOT.SCATTER_STYLE, **DEFAULTS.PLOT.SCATTER_MAX}
array: xarray.DataArray
array whose max will be marked.
x: str
coordinate to use for x-axis values.
y: str
coordinate to use for y-axis values.
t: None or str
coordinate to use for “time” (iterate across movie frames).
None –> probably can’t animate; might show all points in 1 frame.
[TODO] optionally infer x, y, t automatically if not provided directly.
additional kwargs go to XarrayScatter
returns XarrayScatter object.