File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 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.
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
127127look in the lower right corner of the matplotlib toolbar
128128(:ref: `navigation-toolbar `) at the x and y coordinates, you see that
129129the 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
You can’t perform that action at this time.
0 commit comments