Issue
Regarding matplotlib.figure
, the documentation says there is a class matplotlib.figure.AxesStack
and that
The AxesStack is a callable, where ax_stack() returns the current axes
However, when I call fig.ax_stack()
, I get the error:
AttributeError: 'Figure' object has no attribute 'ax_stack'
Solution
The property .axes
returns a list of the Axes
objects in the Figure
object:
ax_list = fig.axes
Answered By - tacaswell
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.