Closed
Description
hiding spines is very common in creating a new plot by matplotlib, and the flowing lines of code are widely used.
ax.spines['top'].set_visible(False)
ax.spines['right'].set_visible(False)
They are a little comprehensive for new users to remember, and is easy to get wrong.
Will it possible to access the spine by class attribute and make matplotlib more object-oriented, with this mirror change.
ax.spines.top.set_visible(False)
ax.spines.right.set_visible(False)
or even,
ax.spines.top = None
ax.spines.right = None