Skip to content

Document the colormap option for mpl_palette - #4048

Open
linzch3 wants to merge 1 commit into
mwaskom:masterfrom
linzch3:fix/docs-seaborn-mpl-colormap
Open

linzch3 wants to merge 1 commit into
mwaskom:masterfrom
linzch3:fix/docs-seaborn-mpl-colormap

Conversation

@linzch3

@linzch3 linzch3 commented Nov 23, 2026

Copy link
Copy Markdown

mpl_palette() accepts as_cmap, but the argument is missing from the API documentation. Its return section also only names ListedColormap, although palettes such as Blues return a LinearSegmentedColormap. This documents the switch and uses the common Colormap base class.

Numpydoc parses the changed fields, and a focused Napoleon/Sphinx HTML build passes with warnings treated as errors. The AST is unchanged after removing docstrings. Direct CVXPY and Seaborn contract checks passed; full documentation sites and full test suites were not run. Ruff and git diff --check pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant