solarwindpy.plotting.spiral.SpiralPlot2Dο
- class SpiralPlot2D(x, y, z=None, logx=False, logy=False, initial_bins=5, clip_data=False)[source]ο
Bases:
PlotWithZdata,CbarMaker2D spiral plotting with adaptive mesh refinement.
Examples
splot = SpiralPlot2D(β¦) splot.initialize_mesh()
- property climο
- property initial_binsο
- property groupedο
- property meshο
- set_clim(lower=None, upper=None)[source]ο
Set the min (lower) and max (upper) counts per bin.
This limit is applied after the
groupby.agg()is run.
- make_plot(ax=None, cbar=True, limit_color_norm=False, cbar_kwargs=None, fcn=None, alpha_fcn=None, **kwargs)[source]ο
- plot_contours(ax=None, label_levels=True, cbar=True, limit_color_norm=False, cbar_kwargs=None, fcn=None, plot_edges=False, edges_kwargs=None, clabel_kwargs=None, skip_max_clbl=True, use_contourf=False, **kwargs)[source]ο
Make a contour plot on ax using ax.contour.
- Parameters:
ax (mpl.axes.Axes, None) β If None, create an Axes instance from plt.subplots.
label_levels (bool) β If True, add labels to contours with ax.clabel.
cbar (bool) β If True, create color bar with labels.z.
limit_color_norm (bool) β If True, limit the color range to 0.001 and 0.999 percentile range of the z-value, count or otherwise.
cbar_kwargs (dict, None) β If not None, kwargs passed to self._make_cbar.
fcn (FunctionType, None) β Aggregation function. If None, automatically select in
agg().plot_edges (bool) β If True, plot the smoothed, extreme edges of the 2D histogram.
clabel_kwargs (None, dict) β If not None, dictionary of kwargs passed to ax.clabel.
skip_max_clbl (bool) β If True, donβt label the maximum contour. Primarily used when the maximum contour is, effectively, a point.
maximum_color β The color for the maximum of the PDF.
use_contourf (bool) β If True, use ax.contourf. Else use ax.contour.
gaussian_filter_std (int) β If > 0, apply scipy.ndimage.gaussian_filter to the z-values using the standard deviation specified by gaussian_filter_std.
gaussian_filter_kwargs (None, dict) β If not None and gaussian_filter_std > 0, passed to
scipy.ndimage.gaussian_filter()kwargs β Passed to
ax.pcolormesh(). If row or column normalized data, norm defaults to mpl.colors.Normalize(0, 1).
- property clipο
- property dataο
- property labelsο
- property logο
- property loggerο
- property pathο
Path for saving figure.
- set_labels(**kwargs)ο
Set or update x, y, or z labels. Any label not specified in kwargs.
is propagated from self.labels.<x, y, or z>.
- set_log(x=None, y=None)ο
- set_path(new, add_scale=True)ο
Build the plot save path.