Tkinter menyembunyikan legenda

currentState = ax.legend().get_visible()
ax.legend().set_visible(not currentState)
draw()
Thoughtless Tapir