pyrfu.plot#
Plotting routines for time series, spectrograms, particle distributions and spacecraft configurations, built on matplotlib.
import matplotlib.pyplot as plt
from pyrfu.plot import plot_line, plot_spectr
Time series and spectrograms#
Line plot of time series. |
|
Plot a spectrogram using pcolormesh. |
|
Line plot of 4 spacecraft time series. |
|
Plot lines with color associated to the level. |
|
Add a vertical span (rectangle) across the time Axes. |
|
Similar to zoom_effect01. |
|
Add extra axes to plot spacecraft position, as X, Y, Z and the distance R, with a label on the left. |
Particle distributions#
Plot the projection of the distribution. |
|
Plot the 2D recuded distribution f2d onto the axis ax. |
|
Creates colormap of the phase space density or the differential particle flux, as a function of the azimuthal and elevation angles. |
Spacecraft and magnetosphere#
Plot spacecraft configuration with three 2d plots of the position in Re and one 3d plot of the relative position of the spacecraft. |
|
Plot magnetopause, bow shock and earth. |
Statistics, contours and surfaces#
Produces a scatter plot of each components of field inp1 with respect to every component of field inp2. |
|
Create a heatmap from a numpy array and two lists of labels. |
|
Annotate a heatmap. |
|
Plot a contour plot. |
|
Plots surface. |
|
Add the thresholds for the electromagnetic ion temperature anisotropy driven instabilities from linear Vlasov theory [Rca576d89cab6-1] [Rca576d89cab6-2] . |
Figure styling#
Setup plot style. |
|
Sets color cycle. |
|
Add colorbar to ax corresponding to im. |
|
Add subplots labels to axes |