set_config¶
yohou.plotting._utils.set_config(*, resampler=None, resampler_n_shown_samples=None, resampler_downsampler=None, resampler_gap_handler=None, resampler_trace_prefix_suffix=None, resampler_show_mean_aggregation_size=None)
¶
Set global plotting configuration.
Parameters¶
| Name | Type | Description | Default |
|---|---|---|---|
resampler
|
bool | Literal['widget'] | None
|
Controls plotly-resampler usage for time-axis plots.
|
None
|
resampler_n_shown_samples
|
int | None
|
Default number of samples shown per trace when resampling is active.
|
None
|
resampler_downsampler
|
AbstractAggregator | None
|
Default downsampling algorithm (e.g. |
None
|
resampler_gap_handler
|
AbstractGapHandler | None
|
Default gap detection strategy (e.g. |
None
|
resampler_trace_prefix_suffix
|
tuple[str, str] | None
|
Prefix and suffix added to legend names of resampled traces.
|
None
|
resampler_show_mean_aggregation_size
|
bool | None
|
Whether to show the mean aggregation bin size as a legend suffix.
|
None
|
Examples¶
>>> from yohou.plotting import set_config, get_config
>>> set_config(resampler="widget")
>>> get_config()["resampler"]
'widget'
>>> set_config(resampler=False)
See Also¶
get_config : Read the current configuration.
config_context : Temporarily override configuration.