Files
ETPlot/plotstyle/__init__.py
T
lars 36ae18e880 Add plotstyle: reusable KIT-branded matplotlib styling toolkit
Introduces a new plotstyle package providing consistent, presentation/thesis-ready
matplotlib figures: a KIT corporate-design color palette (categorical, sequential,
diverging, status), a theme applied via use() (KIT-black bottom spine only, left/bottom
ticks, horizontal gridlines, left-aligned titles, LaTeX text in Latin Modern Sans),
new_figure() with size presets and figure-level title/params subtitles, a
same-size colorbar() helper, style_legend() and panel_label() building blocks, and
savefig(). Ships as an optional "plotting" extra so core gallery installs stay
lightweight, with a full test suite and a runnable example notebook.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-22 14:19:30 +02:00

31 lines
705 B
Python

"""Reusable matplotlib styling and building blocks for consistent, modern
scientific plots across presentations and thesis figures.
import plotstyle as ps
ps.use()
fig, ax = ps.new_figure("thesis-single")
ax.plot(x, y, label="A")
ps.style_legend(ax)
ps.savefig(fig, "plots/my_plot", formats=("pdf", "png"))
"""
from . import colors
from .annotations import panel_label, style_legend
from .colors import get_color
from .figures import FIGSIZES, colorbar, new_figure, savefig
from .style import reset, use
__all__ = [
"colors",
"get_color",
"use",
"reset",
"new_figure",
"colorbar",
"savefig",
"FIGSIZES",
"style_legend",
"panel_label",
]