matplotlib-tutorial icon indicating copy to clipboard operation
matplotlib-tutorial copied to clipboard

Hiding Spines

Open joel-e-m-mitchell opened this issue 7 years ago • 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?

joel-e-m-mitchell avatar Mar 04 '18 19:03 joel-e-m-mitchell

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

rougier avatar Mar 06 '18 16:03 rougier