Closed
Description
Bug report
Bug summary
Running fig.add_axes()
without any arguments does nothing (and doesn't raise an error).
Code for reproduction
import matplotlib.pyplot as plt
fig = plt.figure()
new_axes = fig.add_axes()
print(new_axes)
Actual outcome
new_axes is None
the relevant code in add_axes reads:
...
if not len(args):
return
...
Expected outcome
either of these:
- raises an error
- returns an axis object with a default size (like pyplot.axes())
Matplotlib version
- Matplotlib version: 3.0.3