Plotting for Publication
Scientists don’t just produce plots; they produce evidence. A good plot should be clear, accessible, and aesthetically pleasing. In this lesson, we explore how to move beyond default settings.
Global Styles with plt.style
Matplotlib comes with several pre-defined style sheets. You can view them all using plt.style.available.
Working with Colormaps
Choosing the right colormap is critical. Avoid “jet” and other non-perceptually uniform maps. Use viridis, magma, or inferno for continuous data.
Annotations: Highlighting Key Data
Sometimes you need to point directly at a feature in your data.
Complex Layouts with GridSpec
While plt.subplots() handles simple grids, GridSpec allows for plots that span multiple rows or columns.
In the next lesson, we will see how Seaborn makes these complex statistical visualizations much easier to achieve.