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

Skip to content

Commit 9e1280c

Browse files
committed
FIX: Adding a line property to Colorbar to override the axes attribute
1 parent 569fbc1 commit 9e1280c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/matplotlib/colorbar.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ def __init__(self, ax, *, cmap=None,
448448
self.extendrect = extendrect
449449
self.solids = None
450450
self.solids_patches = []
451-
# self.lines = []
451+
self._lines = []
452452

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

487+
@property
488+
def lines(self):
489+
return self._lines
490+
487491
def draw_all(self):
488492
"""
489493
Calculate any free parameters based on the current cmap and norm,

0 commit comments

Comments
 (0)