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',
)
Diverging bar chart from templates module

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
OpenColor palette preview from plot_colors diagnostic tool

See API › Visualization Tools for full details.

See also