Skip to content

Commit 71cc71a

Browse files
committed
Merge pull request #2562 from esc/minor_recipe_tweaks
Just some small tweaks to the recipes
2 parents e7d6cc8 + 11075eb commit 71cc71a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/users/recipes.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ you will see that the x tick labels are all squashed together.
123123
plt.plot(r.date, r.close)
124124
plt.title('Default date handling can cause overlapping labels')
125125

126-
Another annoyance is that if you hover the mouse over a the window and
126+
Another annoyance is that if you hover the mouse over the window and
127127
look in the lower right corner of the matplotlib toolbar
128128
(:ref:`navigation-toolbar`) at the x and y coordinates, you see that
129129
the x locations are formatted the same way the tick labels are, eg
@@ -330,8 +330,7 @@ nice to make the legend frame transparent.
330330
ax.plot(np.random.randn(300), 'o-', label='normal distribution')
331331
ax.plot(np.random.rand(300), 's-', label='uniform distribution')
332332
ax.set_ylim(-3, 3)
333-
leg = ax.legend(loc='best', fancybox=True)
334-
leg.get_frame().set_alpha(0.5)
333+
ax.legend(loc='best', fancybox=True, framealpha=0.5)
335334

336335
ax.set_title('fancy, transparent legends')
337336

0 commit comments

Comments
 (0)