Lesson 15 of 20
Small multiples — putting four conditions side by side
Figs. 5D·5K·7C·7D · WT/KD × isotype/anti-PD1
The experiment in this paper is a 2×2.
| Isotype antibody | anti-PD1 | |
|---|---|---|
| WT Ddx54 | control | immunotherapy only |
| Ddx54 KD | knockdown only | both |
The paper's conclusion is that only the bottom-right cell works. So the four cells have to be drawn so they can be compared at a glance.
The tool for that is small multiples — the same chart repeated once per condition and laid out side by side.
The line
sharex=True, sharey=True is the whole point of this figure. Without it the four panels cannot be compared.
Python
Runs in your browser
Overlay or facet — when do you use which?
Overlay
when there are four lines or fewer and the point is when they diverge.
That is Fig. 4C — four curves in one panel
Facet
when points overlap, or when each condition needs its whole distribution shown.
That is the density plots of Figs. 5K and 7C
The paper does both. Curves overlaid, densities faceted. Overlay while it still reads; split when it stops. The rule really is that simple.
🤔 Check yourself
You are laying four density plots side by side. What matters most?
Answer The point of laying them out is comparison. Different axis or colour ranges destroy that point. In matplotlib that means
sharex/sharey and vmin/vmax.🤔 Check yourself
Twelve lines overlaid in one panel are unreadable. What do you do?
Answer About four lines is the limit for a readable overlay. Beyond that you split or suppress. Adding more colours is always the wrong answer.