xyzpy.plot.core
Helper functions for preparing data to be plotted.
Module Contents
-
xyzpy.plot.core.PLOTTER_DEFAULTS
-
xyzpy.plot.core._PLOTTER_OPTS = ['backend', 'figsize', 'axes_loc', 'axes_rloc', 'add_to_axes', 'add_to_xaxes', 'add_to_fig',...
-
xyzpy.plot.core.check_excess_dims(ds, var, valid_dims, mode='lineplot')[source]
-
class xyzpy.plot.core.Plotter(ds, x, y, z=None, c=None, y_err=None, x_err=None, **kwargs)[source]
-
x_coo
-
y_coo
-
z_coo = None
-
c_coo = None
-
y_err = None
-
x_err = None
-
_data_range_calculated = False
-
_c_cols = []
-
_get_ds()[source]
-
_set_ds(ds)[source]
-
_del_ds()[source]
-
ds
-
prepare_axes_labels()[source]
Work out what the axes titles should be.
-
prepare_z_vals(mode='lineplot', grid=False)[source]
Work out what the ‘z-coordinate’, if any, should be.
- Parameters:
mode ({'lineplot', 'scatter', 'histogram'})
-
prepare_z_labels()[source]
Work out what the labels for the z-coordinate should be.
-
calc_use_legend_or_colorbar()[source]
Work out whether to use a legend.
-
prepare_xy_vals_lineplot(mode='lineplot')[source]
Select and flatten the data appropriately to iterate over.
-
prepare_x_vals_histogram()[source]
-
prepare_heatmap_data(grid=False)[source]
Prepare the data to go into a heatmap.
-
calc_color_norm()[source]
-
calc_line_colors()[source]
Helper function for calculating what the colormapped color of each
line should be.
-
prepare_colors()[source]
Prepare the colors for the lines, based on the z-coordinate.
-
prepare_markers()[source]
Prepare the markers to be used for each line.
-
prepare_line_styles()[source]
Line widths and styles.
-
prepare_zorders()[source]
What order lines appear over one another
-
calc_data_range(force=False)[source]
-
calc_plot_range()[source]
Logic for processing limits and padding into plot ranges.
-
class xyzpy.plot.core.AbstractLinePlot[source]
-
prepare_data_single()[source]
-
prepare_data_multi_grid()[source]
-
class xyzpy.plot.core.AbstractScatter[source]
-
prepare_data_single()[source]
-
prepare_data_multi_grid()[source]
-
class xyzpy.plot.core.AbstractHistogram[source]
-
prepare_data_single()[source]
-
prepare_data_multi_grid()[source]
-
class xyzpy.plot.core.AbstractHeatMap[source]
-
prepare_data_single()[source]
-
prepare_data_multi_grid()[source]
-
xyzpy.plot.core.calc_row_col_datasets(ds, row=None, col=None)[source]
-
xyzpy.plot.core.intercept_call_arg(fn)[source]
-
xyzpy.plot.core.prettify(x)[source]