eeb483a4fa
Image- and bin-indexed plots have no meaningful x baseline, so the themed bottom spine kept by use() doesn't apply to them. Adds an explicit opt-in to disable all spines on such Axes, documents it in plotstyle/CLAUDE.md, and updates the showcase notebook's colormap and multi-panel examples to use it. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
32 lines
733 B
Python
32 lines
733 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, no_spines, savefig
|
|
from .style import reset, use
|
|
|
|
__all__ = [
|
|
"colors",
|
|
"get_color",
|
|
"use",
|
|
"reset",
|
|
"new_figure",
|
|
"colorbar",
|
|
"no_spines",
|
|
"savefig",
|
|
"FIGSIZES",
|
|
"style_legend",
|
|
"panel_label",
|
|
]
|