Migration to the concise API#
The concise API restores the economy and publication defaults of gsplot 0.3
without restoring caller inspection, hidden current-Figure ownership, global
color counters, implicit configuration discovery, or import-time rcParams
changes.
Common replacements#
Historical or repair-era form |
Concise form |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
historical saving |
|
|
|
implicit |
|
The advanced names savefig, style_axes, inset_axes, colored plotting
helpers, and typed styling values remain supported; they are no longer needed
for the primary publication recipe.
Defaults that intentionally changed#
New Figures use an 85/170 mm automatic paper canvas, constrained layout, and target-local paper style. Pass
size=None,layout="none", andstyle=Nonefor ambient Matplotlib behavior.legenddefaults to best placement rather than the historical lower-left position. Passloc="lower left"when placement is part of the figureβs meaning.readdefaults to comma-delimited input withunpack=True. Usedelimiter=Nonefor whitespace-separated text or an explicit delimiter for tab-separated data.savedefaults to PNG and PDF, 600-DPI raster output, tight crop,show=True, and overwrite.savefigretains its conservative advanced contract.Option-free
lineandscattercalls on ordinary Matplotlib Axes use that Axes property cycle. Useseries=n, an explicit color, orpaper(ax)for a deterministic publication identity.
Compatibility window#
Safe historical root names and documented module imports remain adapters through 1.x. Valid concise calls do not warn. Historical call forms warn at the compatibility boundary, and candidate removal is no earlier than 2.0 after a separate breaking-change review.
The complete import, signature, default, return, warning, and exception matrix is maintained in the API migration contract. The legacy compatibility example is intentionally the only plotting example that uses the deprecated 0.x workflow.