Thanks to visit codestin.com
Credit goes to github.com

Skip to content

In colorbar docs, add ref from 'boundaries' doc to 'spacing' doc. #28942

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 7, 2024
Merged
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
15 changes: 8 additions & 7 deletions lib/matplotlib/colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@
If *False* the minimum and maximum colorbar extensions will be triangular
(the default). If *True* the extensions will be rectangular.

spacing : {'uniform', 'proportional'}
For discrete colorbars (`.BoundaryNorm` or contours), 'uniform' gives each
color the same space; 'proportional' makes the space proportional to the
data interval.

ticks : None or list of ticks or Locator
If None, ticks are determined automatically from the input.

Expand All @@ -109,9 +104,15 @@
If unset, the colormap will be displayed on a 0-1 scale.
If sequences, *values* must have a length 1 less than *boundaries*. For
each region delimited by adjacent entries in *boundaries*, the color mapped
to the corresponding value in values will be used.
to the corresponding value in *values* will be used. The size of each
region is determined by the *spacing* parameter.
Normally only useful for indexed colors (i.e. ``norm=NoNorm()``) or other
unusual circumstances.""")
unusual circumstances.

spacing : {'uniform', 'proportional'}
For discrete colorbars (`.BoundaryNorm` or contours), 'uniform' gives each
color the same space; 'proportional' makes the space proportional to the
data interval.""")


def _set_ticks_on_axis_warn(*args, **kwargs):
Expand Down
Loading