Skip to content

Commit 9eeb460

Browse files
committed
Do not clip lines
1 parent 815bdb6 commit 9eeb460

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/matplotlib/colorbar.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,8 @@ def _add_solids_patches(self, X, Y, C, mappable):
783783

784784
def _do_extends(self, extendlen):
785785
"""
786-
Make adjustments for the extend triangles (or rectanges)
786+
Make adjustments of the inner axes for the extend triangles (or
787+
rectanges) and add them as patches.
787788
"""
788789
# extend lengths are fraction of the *inner* part of colorbar,
789790
# not the total colorbar:
@@ -891,6 +892,8 @@ def add_lines(self, levels, colors, linewidths, erase=True):
891892
self.lines = []
892893
self.lines.append(col)
893894
col.set_color(colors)
895+
# set clipping to False, which should work well with default
896+
# limits.
894897
col.set_clip_on(False)
895898
self.ax.add_collection(col)
896899
self.stale = True

0 commit comments

Comments
 (0)