Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ def _parse_skip_subdirs_file():
'sphinxext.mock_gui_toolkits',
'sphinxext.rcparams',
'sphinxext.redirect_from',
'sphinxext.skip_deprecated',
'sphinx_copybutton',
'sphinx_design',
'sphinx_tags',
Expand Down
17 changes: 0 additions & 17 deletions doc/sphinxext/skip_deprecated.py

This file was deleted.

10 changes: 6 additions & 4 deletions lib/matplotlib/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,17 +579,19 @@ def to_hex(c, keep_alpha=False):
### Backwards-compatible color-conversion API


cnames = CSS4_COLORS
hexColorPattern = re.compile(r"\A#[a-fA-F0-9]{6}\Z")
rgb2hex = to_hex
hex2color = to_rgb
cnames = CSS4_COLORS #: :meta private:
hexColorPattern = re.compile(r"\A#[a-fA-F0-9]{6}\Z") #: :meta private:
rgb2hex = to_hex #: :meta private:
hex2color = to_rgb #: :meta private:


class ColorConverter:
"""
A class only kept for backwards compatibility.

Its functionality is entirely provided by module-level functions.

:meta private:
"""
colors = _colors_full_map
cache = _colors_full_map.cache
Expand Down
Loading