pyrfu.plot#

Plotting routines for time series, spectrograms, particle distributions and spacecraft configurations, built on matplotlib.

Time series and spectrograms#

plot_line

Line plot of time series.

plot_spectr

Plot a spectrogram using pcolormesh.

pl_tx

Line plot of 4 spacecraft time series.

plot_clines

Plot lines with color associated to the level.

span_tint

Add a vertical span (rectangle) across the time Axes.

zoom

Similar to zoom_effect01.

add_position

Add extra axes to plot spacecraft position, as X, Y, Z and the distance R, with a label on the left.

Particle distributions#

plot_projection

Plot the projection of the distribution.

plot_reduced_2d

Plot the 2D recuded distribution f2d onto the axis ax.

plot_ang_ang

Creates colormap of the phase space density or the differential particle flux, as a function of the azimuthal and elevation angles.

Spacecraft and magnetosphere#

mms_pl_config

Plot spacecraft configuration with three 2d plots of the position in Re and one 3d plot of the relative position of the spacecraft.

plot_magnetosphere

Plot magnetopause, bow shock and earth.

Statistics, contours and surfaces#

pl_scatter_matrix

Produces a scatter plot of each components of field inp1 with respect to every component of field inp2.

plot_heatmap

Create a heatmap from a numpy array and two lists of labels.

annotate_heatmap

Annotate a heatmap.

plot_contour

Plot a contour plot.

plot_surf

Plots surface.

ion_brazil_plot_thresh

Add the thresholds for the electromagnetic ion temperature anisotropy driven instabilities from linear Vlasov theory [Rca576d89cab6-1] [Rca576d89cab6-2] .

Figure styling#

use_pyrfu_style

Setup plot style.

set_color_cycle

Sets color cycle.

colorbar

Add colorbar to ax corresponding to im.

make_labels

Add subplots labels to axes