rougier/matplotlib-tutorial

Hiding Spines

joel-e-m-mitchell opened this issue · 1 comments

Hi, thank you for your tutorial, it's been really helpful!

In the Moving Spines section, you've used ax.spines['right'].set_color('none') to hide the axis.
I wonder if ax.spines['right'].set_visible(False) would be a more elegant solution?

You're right actually. I wonder if this makes a difference for the ticks (do they become invisible as well with the invisible property)?