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

Skip to content

Commit 9158c69

Browse files
committed
DOC: make example a bit wider + remove lines
1 parent 042ee89 commit 9158c69

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

examples/color/named_colors.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
ncols = 4
2828
nrows = int(np.ceil(1. * n / ncols))
2929

30-
fig, ax = plt.subplots()
30+
fig, ax = plt.subplots(figsize=(8, 5))
3131

3232
X, Y = fig.get_dpi() * fig.get_size_inches()
3333

@@ -49,10 +49,6 @@
4949
horizontalalignment='left',
5050
verticalalignment='center')
5151

52-
# Add extra black line a little bit thicker to make
53-
# clear colors more visible.
54-
ax.hlines(
55-
y, xi_line, xf_line, color='black', linewidth=(h * 0.7))
5652
ax.hlines(
5753
y + h * 0.1, xi_line, xf_line, color=colors[name], linewidth=(h * 0.6))
5854

0 commit comments

Comments
 (0)