plot_implicit and legend

The return value of self.ax.legend() should be checked first and then
the call to set_visible() be made.