pttools.analysis.plot_vw_alpha
A plot with \(v_\text{wall}\) on the x-axis and \(\alpha_n\) on the y-axis.
Classes
- class pttools.analysis.plot_vw_alpha.VwAlphaPlot(grid, fig=None, ax=None, title=None, alpha_label='$\\alpha_n$')
Bases:
objectA plot with \(v_\text{wall}\) on the x-axis and \(\alpha_n\) on the y-axis.
- Parameters:
grid (BubbleGridVWAlpha)
fig (Figure)
ax (Axes)
title (str)
alpha_label (str)
- chapman_jouguet(color='black', ls='--', label='$v_{CJ}$')
Add a Chapman-Jouguet speed curve to the plot
- Parameters:
color (str)
ls (str)
label (str)
- Return type:
List[Line2D]
- color_region(region, color=REGION_COLOR_DEFAULT, alpha=1)
Color a region with a fixed color
- Parameters:
region (ndarray)
color (str)
alpha (float)
- Return type:
- contourf_plusminus(data, label, diff_level=None, cmap_neg=colormap.CMAP_NEG_DEFAULT, cmap_pos=colormap.CMAP_POS_DEFAULT)
Add a contour plot to the figure