Extended Plots & Diagnostics¶
Extended plots (templates)¶
dartwork-mpl provides ready-to-use plot templates in dartwork_mpl.templates
for common chart types that are tedious to build from scratch:
from dartwork_mpl.templates import plot_diverging_bar
fig, ax = plot_diverging_bar(
categories=['Accuracy', 'Recall', 'F1-Score'],
negatives=[-30, -55, -10],
positives=[60, 20, 45],
neg_label='Decrease',
pos_label='Increase',
)
See API › Extended Plots for the full parameter list and all available plot templates.
Diagnostics & previews¶
Quickly inspect what’s available in your current environment — useful for debugging font registration, checking color coverage, or previewing colormaps:
import dartwork_mpl as dm
dm.plot_colors(ncols=5, sort_colors=True) # inspect each color library
dm.plot_colormaps(group_by_type=True, ncols=4) # compare sequential/diverging sets
dm.plot_fonts(font_size=11, ncols=3) # audit bundled fonts
See API › Visualization Tools for full details.
See also¶
Next → Interactive UI — launch a local web app to tweak parameters with sliders, export plots, and generate reproducible scripts
API › Extended Plots for all xplot function signatures
API › Visualization Tools for diagnostic plot functions