Skip to content
beautiful-data-viz logo

Beautiful Data Viz

beautiful-data-viz

Create publication-quality, aesthetically refined charts in Python/Jupyter (matplotlib/seaborn): readable axes, tight whitespace, and curated palettes (categorical/sequential/diverging).

SKILL.md

Full skill instructions

Beautiful Data Viz

Use this skill whenever the user asks to create, restyle, or “make nicer” a data visualization in Python / Jupyter notebooks.

Ethos

Toyplot’s ethos is a good North Star for high-quality plots:

Always look your best.
Share your things.
Play well with others.
Never tell a lie.

(Reference: https://toyplot.readthedocs.io/en/stable/ethos.html)

Defaults (when the user doesn’t specify)

  • Medium: notebook
  • Background: light
  • Library: matplotlib-first, optionally use seaborn for theme/​palettes
  • Output: one crisp figure per cell; include a savefig line when useful

Workflow (follow in order)

  1. Clarify intent (or assume):

    • What is the single takeaway?
    • Audience + medium (notebook, paper, slides) and whether background is light/dark
    • Categorical vs continuous variables; number of categories
  2. Pick the simplest correct chart

    • Prefer: line (time), scatter (relationship), bar/​dot (ranking), histogram/​density (distribution), heatmap (matrix)
    • Avoid: 3D effects, gratuitous decoration, “rainbow” gradients
  3. Choose palette type before choosing colors

  4. Apply a base style, then customize

  5. Build the plot with “readability first” mechanics

    • Use human-friendly units, tick formatting, and concise labels.
    • Limit tick count and prevent overlap.
    • Put the legend where it doesn’t create dead space; prefer direct labels when possible.
  6. Polish for maximum clarity + minimal whitespace

    • Titles: short title; optional subtitle/​caption in smaller text
    • Axes: label with units; use sensible limits and a small margin
    • Spines: remove top/​right; lighten remaining
    • Grid: subtle, usually y-grid only; never compete with data
    • Whitespace: use constrained_layout=True or fig.tight_layout(); export with tight bounding box
  7. Validate like a designer

    • At target size: do labels remain readable?
    • In grayscale / colorblind-safe mode: is meaning preserved?
    • Are you encoding something with color that should be encoded with position/​shape instead?
  8. Export cleanly

    • Notebooks: ensure high-resolution (retina) rendering when possible
    • Files: bbox_inches="tight" and small pad_inches for minimal outer whitespace

Color rules (high-aesthetic, high-clarity)

Categorical palettes

  • Prefer visually equidistant colors so categories are easy to distinguish and map to a legend/​key.
  • If you need a custom palette, choose very different endpoints (e.g., warm vs cool) so intermediate colors are distinct.
  • If using a brand color, adjust saturation/​brightness as needed; hue is what people recognize most.
  • Tools:

Sequential palettes

  • Use perceptually uniform sequential maps for numeric magnitude.
  • Seaborn includes "rocket", "mako", "flare", "crest" and supports matplotlib maps like "viridis" / "magma".
  • For lines/​points on light backgrounds, avoid maps whose extremes approach white (hard to see).
  • Reference: https://seaborn.pydata.org/tutorial/color_palettes.html

Diverging palettes

Implementation: quick start

If you can, import and apply the helper:

import sys
from pathlib import Path

# Add the skill directory to sys.path if needed:
# sys.path.append(str(Path("path/​to/​beautiful-data-viz").resolve()))

from assets.beautiful_style import set_beautiful_style, finalize_axes

set_beautiful_style(medium="notebook", background="light")

Then create plots normally (matplotlib or seaborn), and finish with:

finalize_axes(ax, title="...", subtitle="...", tight=True)

Internal references (load only when needed)

External inspiration / guidance

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View