Closed
Description
Bug report
Bug summary
tight_layout()
cooperates withaxis('off')
but not withset_visible(False)
.- cf. pandas#9351
Code for reproduction
This code fails:
import matplotlib.pyplot as plt
f, axarr = plt.subplots(2, 2)
axarr[1][1].set_visible(False)
plt.tight_layout()
This code succeeds:
import matplotlib.pyplot as plt
f, axarr = plt.subplots(2, 2)
axarr[1][1].axis('off')
plt.tight_layout()
Actual outcome
AttributeError: 'NoneType' object has no attribute 'is_bbox'
Expected outcome
Metadata
Metadata
Assignees
Labels
No labels