SyntaxFix
Write A Post
Hire A Developer
Questions
you have to add the following lines of code:
ax = gca() ax.legend_ = None draw()
gca() returns the current axes handle, and has that property legend_