statsplotly.plot_specifiers package¶
This subpackage defines objects and methods to specify plot properties.
Subpackages¶
- statsplotly.plot_specifiers.color package
ColorSpecifier
ColorSpecifier.barmode
ColorSpecifier.color_limits
ColorSpecifier.color_palette
ColorSpecifier.coloraxis_reference
ColorSpecifier.colorbar
ColorSpecifier.colormap
ColorSpecifier.logscale
ColorSpecifier.opacity
ColorSpecifier.build_coloraxis()
ColorSpecifier.build_colorbar()
ColorSpecifier.build_colorscale()
ColorSpecifier.build_from_color_data()
ColorSpecifier.check_logscale
ColorSpecifier.check_opacity
ColorSpecifier.convert_datetime_to_timestamp()
ColorSpecifier.format_color_data()
ColorSpecifier.get_color_hues()
ColorSpecifier.cmax
ColorSpecifier.cmin
ColorSpecifier.zmax
ColorSpecifier.zmin
HistogramColorSpecifier
rgb_string_array_from_colormap()
set_rgb_alpha()
- statsplotly.plot_specifiers.data package
AggregationSpecifier
AggregationSpecifier.aggregated_dimension
AggregationSpecifier.aggregation_func
AggregationSpecifier.data_pointer
AggregationSpecifier.data_types
AggregationSpecifier.error_bar
AggregationSpecifier.check_aggregation_specifier
AggregationSpecifier.check_error_bar
AggregationSpecifier.aggregated_data
AggregationSpecifier.aggregation_plot_dimension
AggregationSpecifier.is_mono_referenced
AggregationSpecifier.reference_data
AggregationSpecifier.reference_dimension
AggregationTraceData
AggregationType
CentralTendencyType
DataDimension
DataHandler
DataHandler.data
DataHandler.data_pointer
DataHandler.slice_logical_indices
DataHandler.slice_order
DataHandler.build_handler()
DataHandler.check_header_format
DataHandler.check_pointers_in_data
DataHandler.convert_categorical_dtype_columns
DataHandler.get_data()
DataHandler.get_mean()
DataHandler.get_median()
DataHandler.iter_slices()
DataHandler.to_dataframe()
DataHandler.data_types
DataHandler.n_slices
DataHandler.slice_levels
DataPointer
DataPointer.color
DataPointer.error_x
DataPointer.error_y
DataPointer.error_z
DataPointer.marker
DataPointer.opacity
DataPointer.shaded_error
DataPointer.size
DataPointer.slicer
DataPointer.text
DataPointer.x
DataPointer.y
DataPointer.z
DataPointer.check_missing_dimension
DataPointer.text_identifiers
DataProcessor
DataTypes
ErrorBarType
HistogramNormType
NormalizationType
RegressionType
SliceTraceType
TraceData
- Submodules
- statsplotly.plot_specifiers.data.statistics module
- statsplotly.plot_specifiers.figure package
HistogramPlot
JointplotPlot
SharedGridAxis
SubplotGridFormatter
SubplotGridFormatter.fig
SubplotGridFormatter.check_common_xaxes_ticks()
SubplotGridFormatter.check_common_yaxes_ticks()
SubplotGridFormatter.set_common_axis_limit()
SubplotGridFormatter.set_common_coloraxis()
SubplotGridFormatter.set_suplotgrid_titles()
SubplotGridFormatter.tidy_axes()
SubplotGridFormatter.tidy_subplots()
create_fig()
- statsplotly.plot_specifiers.layout package
AxesSpecifier
AxesSpecifier.axis_format
AxesSpecifier.legend
AxesSpecifier.traces
AxesSpecifier.x_range
AxesSpecifier.y_range
AxesSpecifier.z_range
AxesSpecifier.get_axes_range()
AxesSpecifier.pad_axis_range()
AxesSpecifier.validate_axis_range_format
AxesSpecifier.height
AxesSpecifier.scaleanchor
AxesSpecifier.scaleratio
AxesSpecifier.width
AxesSpecifier.xaxis_range
AxesSpecifier.yaxis_range
AxesSpecifier.zaxis_range
AxisFormat
AxisType
BarMode
ColoraxisReference
HistogramBarMode
LegendSpecifier
LegendSpecifier.axis_type
LegendSpecifier.data_pointer
LegendSpecifier.error_bar
LegendSpecifier.shaded_error
LegendSpecifier.title
LegendSpecifier.x_label
LegendSpecifier.x_transformation
LegendSpecifier.y_label
LegendSpecifier.y_transformation
LegendSpecifier.z_label
LegendSpecifier.figure_title
LegendSpecifier.x_transformation_legend
LegendSpecifier.xaxis_title
LegendSpecifier.y_transformation_legend
LegendSpecifier.yaxis_title
LegendSpecifier.zaxis_title
PlotAxis
add_update_menu()
adjust_jointplot_legends()
set_horizontal_colorbar()
Submodules¶
statsplotly.plot_specifiers.common module¶
statsplotly.plot_specifiers.trace module¶
- pydantic model statsplotly.plot_specifiers.trace.CategoricalPlotSpecifier¶
Bases:
OrientedPlotSpecifier
,_TraceSpecifier
,_XYTraceValidator
- Fields:
- Validators:
validate_model
»all fields
- field plot_type: CategoricalPlotType [Required]¶
- Validated by:
- get_category_strip_map(data_handler: DataHandler) dict[DataDimension, dict[str, Any]] | None ¶
- validator validate_model » all fields¶
- class statsplotly.plot_specifiers.trace.CategoricalPlotType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
-
- BOX = 'boxplot'¶
- STRIP = 'stripplot'¶
- VIOLIN = 'violinplot'¶
- pydantic model statsplotly.plot_specifiers.trace.HistogramSpecifier¶
Bases:
_TraceSpecifier
- Fields:
- Validators:
check_parameter_consistency
»all fields
- field central_tendency: CentralTendencyType | None = None¶
- Validated by:
- field data_type: np.dtype[Any] [Required]¶
- Validated by:
- field dimension: DataDimension [Required]¶
- Validated by:
- field histnorm: HistogramNormType [Required]¶
- Validated by:
- validator check_cumulative » cumulative¶
- validator check_parameter_consistency » all fields¶
- pydantic model statsplotly.plot_specifiers.trace.JointplotSpecifier¶
Bases:
_TraceSpecifier
- Fields:
- Validators:
- field histogram_specifier: dict[DataDimension, HistogramSpecifier] | None = None¶
- field marginal_plot: MarginalPlotDimension | None = None¶
- field plot_type: JointplotType [Required]¶
- field scatter_specifier: ScatterSpecifier [Required]¶
- Validated by:
- validator check_scatter_specifier » scatter_specifier¶
- compute_histmap(trace_data: TraceData) tuple[Series, Series, ndarray[tuple[int, ...], dtype[Any]]] ¶
- class statsplotly.plot_specifiers.trace.JointplotType(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
-
- HISTOGRAM = 'histogram'¶
- KDE = 'kde'¶
- SCATTER = 'scatter'¶
- SCATTER_KDE = 'scatter+kde'¶
- X_HISTMAP = 'x_histmap'¶
- Y_HISTMAP = 'y_histmap'¶
- class statsplotly.plot_specifiers.trace.MarginalPlotDimension(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
-
- ALL = 'all'¶
- X = 'x'¶
- Y = 'y'¶
- pydantic model statsplotly.plot_specifiers.trace.OrientedPlotSpecifier¶
Bases:
BaseModel
- Fields:
- field prefered_orientation: PlotOrientation | None = None¶
- property anchor_dimension: DataDimension¶
- property anchored_dimension: DataDimension | None¶
- property orientation: PlotOrientation¶
- class statsplotly.plot_specifiers.trace.PlotOrientation(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)¶
-
- HORIZONTAL = 'horizontal'¶
- VERTICAL = 'vertical'¶