Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310a889 commit 11075ebCopy full SHA for 11075eb
1 file changed
doc/users/recipes.rst
@@ -330,8 +330,7 @@ nice to make the legend frame transparent.
330
ax.plot(np.random.randn(300), 'o-', label='normal distribution')
331
ax.plot(np.random.rand(300), 's-', label='uniform distribution')
332
ax.set_ylim(-3, 3)
333
- leg = ax.legend(loc='best', fancybox=True)
334
- leg.get_frame().set_alpha(0.5)
+ ax.legend(loc='best', fancybox=True, framealpha=0.5)
335
336
ax.set_title('fancy, transparent legends')
337
0 commit comments