Adjusting spines
Matplotlib figures have four spines, which enclose the plot data area by default. We may prefer to style or remove them to suit different purposes. Sometimes, we would like to follow certain conventions. For instance, it is common for biologists to publish their western blot or other analysis results in black and white with thick lines and two spines only. While the trend is slowly changing, this style is still adopted by many journal papers. We will discuss this a bit deeper in Chapter 7, A Practical Guide to Scientific Plotting. Meanwhile, users such as news editors and marketing speakers may also find it too boring to have black lines surrounding their graphics. Let's jump in and learn to how to adjust or remove spines. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access