gsplot.AxesDict#
- class AxesDict#
Bases:
dict[str,Axes]A dictionary of mosaic Axes supporting both label and integer index access.
- Parameters:
*args – Dictionary initialization mapping label strings to Matplotlib Axes.
**kwargs – Dictionary initialization mapping label strings to Matplotlib Axes.
Examples
>>> import gsplot as gs >>> figure, axes = gs.subplots("AB") >>> isinstance(axes, gs.AxesDict) True >>> axes["A"] is axes[0] True >>> figure.clear()
- __init__(*args, **kwargs)#
Methods
__class_getitem__See PEP 585
__init_subclass__This method is called when a class is subclassed.
__new__(**kwargs)__subclasshook__Abstract classes can override this to customize issubclass().
fromkeys([value])Create a new dictionary with keys from iterable and values set to value.