Featured image of post 10 Scientific Chart Style Presets: A Quick Reference for Blog Data Visualization

10 Scientific Chart Style Presets: A Quick Reference for Blog Data Visualization

10 matplotlib presets from the scientific-charts skill (Nature/Science/ggplot/Economist/FT/NYT/Tufte/seaborn/538), demonstrated side-by-side using a pro20x cost comparison chart, with color schemes and applicable use cases. Author's default preference: Nature + ggplot.

All 10 Styles at a Glance

10 scientific-grade chart presets compared

The same dataset — pro 20x subscription vs domestic Chinese LLMs, actual cost per million tokens, log axis — rendered in 10 publication-grade styles. Which one to pick depends on whether you want a journal feel, an editorial feel, or minimalism. Below I break down the color palette and use cases for each.

The 10 Presets

1. Nature — White background, no gridlines, thin black spines, steel blue #3B6BA5 + warm orange #E8743B. The most “journal-paper” of the bunch — a serious chart that doesn’t steal the spotlight in body text. Author’s default preference.

2. Science / AAAS — Light y-axis grid, thin border all around, deep blue #1F4E79 + orange #ED7D31. Adds a grid layer over Nature, making precise value readouts easier.

3. ggplot2 theme_gray (the R classic) — Gray panel + white gridlines; R users spot it instantly. #F8766D / #00BFC4. Author’s default preference — most familiar to anyone who’s worked with R.

4. ggplot2 theme_bw — White panel, black border, light gray gridlines on both axes. Cleaner than theme_gray; a go-to for formal reports.

5. The Economist — Red as the lead color #E3120B, top spine, faint y-axis grid. Strong editorial vibe; looks great for news and current-affairs content.

6. Financial Times — Salmon-pink background #FFF1E5, navy blue + wine red, faint salmon gridlines. A natural fit for finance and cost-related content.

7. New York Times — White background, charcoal text, restrained, no gridlines, generous whitespace. The cleanest option; ideal for embedding in long-form articles.

8. Tufte minimal — Hairline axes, no gridlines, gray + black, extreme minimalism. Pushes the data-ink ratio to the max; great for print.

9. seaborn pastel — White background, soft gridlines, pastel bars. Gentle and easy on the eyes; works well when multiple series are displayed side by side.

10. FiveThirtyEight — Gray background, bottom spine, bold and bright. The data-journalism blog look — lively and approachable.

My Defaults

For everyday blog charts, I lean toward Nature and ggplot (theme_gray / theme_bw): white background, restrained, content-agnostic — familiar to anyone with an academic or R background. I only switch to FT or Economist ad hoc for finance/cost-related pieces. The cheat sheet you’re looking at was itself generated with the scripts below.

How to Reproduce

Two scripts are committed under tools/:

  • gen_pro20x_chart.py — Single chart; use the --style flag to switch presets (defaults to nature).
  • gen_pro20x_presets.py — Generates this 10-in-1 comparison sheet.

Both rely on the styles.py module from the scientific-charts skill: call apply_style(fig, ax, preset_name) after drawing, which returns the color palette and resets spines / gridlines / ticks. Pure matplotlib + PIL, no seaborn.

1
2
3
cd ~/blog-lxlynx
python3 tools/gen_pro20x_chart.py --style nature   # single chart
python3 tools/gen_pro20x_presets.py                # 10-in-1 comparison sheet

Full preset names: nature science ggplot_classic ggplot_bw economist ft nyt tufte seaborn_pastel fivethirtyeight.