figure.legend can be called without arguments
modified pyplot.figlegend
modified pyplot.figlegend docstring example
changed the existence check logic