MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / register

Method register

lib/matplotlib/patches.py:2470–2474  ·  view source on GitHub ↗

Register a new style.

(cls, name, style)

Source from the content-addressed store, hash-verified

2468 message="This method is never used internally.",
2469 alternative="No replacement. Please open an issue if you use this.")
2470 def register(cls, name, style):
2471 """Register a new style."""
2472 if not issubclass(style, cls._Base):
2473 raise ValueError(f"{style} must be a subclass of {cls._Base}")
2474 cls._style_list[name] = style
2475
2476
2477def _register_style(style_list, cls=None, *, name=None):

Callers 15

text.pyFile · 0.45
mlab.pyFile · 0.45
_get_config_or_cache_dirFunction · 0.45
colorizer.pyFile · 0.45
colorbar.pyFile · 0.45
legend.pyFile · 0.45
patches.pyFile · 0.45
__init_subclass__Method · 0.45
scale.pyFile · 0.45
install_repl_displayhookFunction · 0.45
contour.pyFile · 0.45
_pylab_helpers.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected