chainconsumer.ChainConfig ¶
Bases: BetterBase
The configuration for a chain. This is used to set the default values for plotting chains, and is also used to store the configuration of a chain.
Note that some attributes are defaulted to None instead of their type hint. Like color. This indicates that this parameter should be inferred if not explicitly set, and that this inference requires knowledge of the other chains. For example, if you have two chains, you probably want them to be different colors.
Source code in src/chainconsumer/chain.py
statistics
class-attribute
instance-attribute
¶
summary_area
class-attribute
instance-attribute
¶
summary_area: float = Field(default=0.6827, ge=0, le=1.0, description='The area to use for summary statistics')
sigmas
class-attribute
instance-attribute
¶
sigmas: list[float] = Field(default=[0, 1, 2], description='The sigmas to use for summary statistics')
color
class-attribute
instance-attribute
¶
linestyle
class-attribute
instance-attribute
¶
linewidth
class-attribute
instance-attribute
¶
show_contour_labels
class-attribute
instance-attribute
¶
shade
class-attribute
instance-attribute
¶
shade_alpha
class-attribute
instance-attribute
¶
shade_gradient
class-attribute
instance-attribute
¶
bar_shade
class-attribute
instance-attribute
¶
bins
class-attribute
instance-attribute
¶
kde
class-attribute
instance-attribute
¶
smooth
class-attribute
instance-attribute
¶
smooth: int = Field(default=3, description='The smoothing for histograms. Set to 0 for no smoothing')
color_param
class-attribute
instance-attribute
¶
color_param: str | None = Field(default=None, description='The parameter (column) to use for coloring')
cmap
class-attribute
instance-attribute
¶
num_cloud
class-attribute
instance-attribute
¶
plot_cloud
class-attribute
instance-attribute
¶
plot_contour
class-attribute
instance-attribute
¶
plot_point
class-attribute
instance-attribute
¶
marker_style
class-attribute
instance-attribute
¶
marker_size
class-attribute
instance-attribute
¶
marker_alpha
class-attribute
instance-attribute
¶
zorder
class-attribute
instance-attribute
¶
shift_params
class-attribute
instance-attribute
¶
shift_params: bool = Field(default=False, description='Whether to shift the parameters by subtracting each parameters mean')