matplotlib.figure.Figure.add_subplots()
(doc) should return an axes.
However, doing
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot()
print(ax)
returns None
.
Same happens for ax = fig.add_axes()
Why this happens and how can I obtain the axes handle?