Python Matplotlib Get Axis Limits Matplotlib Legend