gsplot.Config#
- class Config(*, schema_version=2, figure=<factory>, plotting=<factory>)#
Bases:
objectImmutable schema-versioned configuration for canonical operations.
- Parameters:
schema_version (
Literal[2]) – Canonical configuration schema identity, integer2.figure (
gsplot._config.model.FigureConfig) – Immutable figure defaults such as size, units, and layout flags.plotting (
gsplot._config.model.PlottingConfig) – Immutable plotting defaults such as color, colormap, and finite-data policy.
Notes
Config()contains library defaults and is independent from every other instance. Usefrom_mapping()orfrom_file()for caller data; no mutable mapping is retained.Examples
>>> import gsplot as gs >>> config = gs.Config() >>> config.plotting.default_cmap 'viridis'
- __init__(*, schema_version=2, figure=<factory>, plotting=<factory>)#
- Parameters:
schema_version (Literal[2])
figure (FigureConfig)
plotting (PlottingConfig)
- Return type:
None
Methods
__init_subclass__This method is called when a class is subclassed.
__new__(**kwargs)__subclasshook__Abstract classes can override this to customize issubclass().