Answers for "check if axis object is empty"

0

check if axis object is empty

fig = plt.figure()
if fig.get_axes():
    # Do stuff when the figure isn't empty.
Posted by: Guest on May-15-2021

Code answers related to "check if axis object is empty"

Browse Popular Code Answers by Language