Skip to content

Commit 85b56d3

Browse files
committed
Use thinner linewidth in contourf
svn path=/trunk/matplotlib/; revision=1849
1 parent b6cd1ec commit 85b56d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/contour.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -445,9 +445,8 @@ def __init__(self, ax, *args, **kwargs):
445445
uppers = self.levels[1:]
446446
for level, level_upper, color in zip(lowers, uppers, self.tcolors):
447447
nlist = C.trace(level, level_upper, points = 1)
448-
col = PolyCollection(nlist,
449-
linewidths=(1,))
450-
# linewidths = 1 is necessary to avoid artifacts
448+
col = PolyCollection(nlist, linewidths=(0.01,))
449+
# linewidths > 0 is necessary to avoid artifacts
451450
# in rendering the region boundaries.
452451
col.set_color(color) # sets both facecolor and edgecolor
453452
self.ax.add_collection(col)

0 commit comments

Comments
 (0)