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

Skip to content

Merge Colorbar and ColorbarBase. #20354

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
Jun 18, 2021
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
4 changes: 2 additions & 2 deletions doc/users/prev_whats_new/whats_new_3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ frame. Padding and separation parameters can be adjusted.
Add ``minorticks_on()/off()`` methods for colorbar
--------------------------------------------------

A new method `~.colorbar.ColorbarBase.minorticks_on` has been added to
A new method ``ColorbarBase.minorticks_on`` has been added to
correctly display minor ticks on a colorbar. This method doesn't allow the
minor ticks to extend into the regions beyond vmin and vmax when the *extend*
keyword argument (used while creating the colorbar) is set to 'both', 'max' or
'min'. A complementary method `~.colorbar.ColorbarBase.minorticks_off` has
'min'. A complementary method ``ColorbarBase.minorticks_off`` has
also been added to remove the minor ticks on the colorbar.


Expand Down
2 changes: 1 addition & 1 deletion doc/users/prev_whats_new/whats_new_3.3.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Align labels to Axes edges
--------------------------

`~.axes.Axes.set_xlabel`, `~.axes.Axes.set_ylabel` and
`.ColorbarBase.set_label` support a parameter ``loc`` for simplified
``ColorbarBase.set_label`` support a parameter ``loc`` for simplified
positioning. For the xlabel, the supported values are 'left', 'center', or
'right'. For the ylabel, the supported values are 'bottom', 'center', or
'top'.
Expand Down
4 changes: 2 additions & 2 deletions examples/color/colorbar_basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
#
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
# - `matplotlib.colorbar.ColorbarBase.minorticks_on`
# - `matplotlib.colorbar.ColorbarBase.minorticks_off`
# - `matplotlib.colorbar.Colorbar.minorticks_on`
# - `matplotlib.colorbar.Colorbar.minorticks_off`
2 changes: 1 addition & 1 deletion examples/images_contours_and_fields/image_masked.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@
# - `matplotlib.axes.Axes.imshow` / `matplotlib.pyplot.imshow`
# - `matplotlib.figure.Figure.colorbar` / `matplotlib.pyplot.colorbar`
# - `matplotlib.colors.BoundaryNorm`
# - `matplotlib.colorbar.ColorbarBase.set_label`
# - `matplotlib.colorbar.Colorbar.set_label`
Loading