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
FIX: Adding a line property to Colorbar to override the axes attribute
  • Loading branch information
greglucas committed Jun 11, 2021
commit 7cbeb40e8f10010c6ad4630b08994f3211f16e9d
6 changes: 5 additions & 1 deletion lib/matplotlib/colorbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def __init__(self, ax, *, cmap=None,
self.extendrect = extendrect
self.solids = None
self.solids_patches = []
# self.lines = []
self._lines = []

for spine in self.spines.values():
spine.set_visible(False)
Expand Down Expand Up @@ -484,6 +484,10 @@ def __init__(self, ax, *, cmap=None,
self.formatter = format # Assume it is a Formatter or None
self.draw_all()

@property
def lines(self):
return self._lines

def draw_all(self):
"""
Calculate any free parameters based on the current cmap and norm,
Expand Down