Skip to content
Closed
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Flake8
  • Loading branch information
jklymak committed Jun 22, 2021
commit f084fcb4dc8f2561ce9f596f1f15560eaa6b0bbf
7 changes: 3 additions & 4 deletions lib/matplotlib/colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,8 @@ def __init__(self, parent, userax=True):
self.outer_ax.tick_params = self.inner_ax.tick_params
self.outer_ax.set_xticks = self.inner_ax.set_xticks
self.outer_ax.set_yticks = self.inner_ax.set_yticks
for attr in ["get_position", "set_aspect",
"_remove_method", "_set_position",
for attr in ["get_position", "set_aspect",
"_remove_method", "_set_position",
"set_position"]:
setattr(self, attr, getattr(self.outer_ax, attr))
self._colorbar_info = None # used for mpl-created axes
Expand All @@ -285,7 +285,6 @@ def draw(self, renderer):
self.outer_ax.draw(renderer)



class _ColorbarSpine(mspines.Spine):
def __init__(self, axes):
self._ax = axes
Expand Down Expand Up @@ -961,7 +960,7 @@ def set_alpha(self, alpha):
def remove(self):
"""
Remove this colorbar from the figure.

If the colorbar was created with ``use_gridspec=True`` the previous
gridspec is restored.
"""
Expand Down