File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ you will see that the x tick labels are all squashed together.
123
123
plt.plot(r.date, r.close)
124
124
plt.title('Default date handling can cause overlapping labels')
125
125
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
127
127
look in the lower right corner of the matplotlib toolbar
128
128
(:ref: `navigation-toolbar `) at the x and y coordinates, you see that
129
129
the x locations are formatted the same way the tick labels are, eg
@@ -330,8 +330,7 @@ nice to make the legend frame transparent.
330
330
ax.plot(np.random.randn(300), 'o-', label='normal distribution')
331
331
ax.plot(np.random.rand(300), 's-', label='uniform distribution')
332
332
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)
335
334
336
335
ax.set_title('fancy, transparent legends')
337
336
You can’t perform that action at this time.
0 commit comments