The plot object to render. Supports matplotlib/seaborn artists, Plotly figures, Bokeh figures and layouts, plotnine ggplot objects, and Altair chart objects. If None, uses the current matplotlib figure.
None
use_cdn
bool, {"auto"}, or None
* True: load maidr.js from the public jsDelivr CDN only (no offline fallback). * False: reference the copy bundled inside the installed maidr package. Use this in air-gapped environments. * "auto": emit a CDN <script> with a client-side onerror handler that swaps in the bundled copy when the CDN is unreachable. This is the default mode. Reachability is decided in the browser, but building the URL resolves the published version over the network once per process (bounded by MAIDR_CDN_TIMEOUT; set MAIDR_CDN_VERSION=latest to skip it). * None (default): use the process-wide default set via :func:set_use_cdn or the MAIDR_USE_CDN env var (both default to "auto"). Altair charts always use the CDN — this argument is not plumbed through that adapter, so False warns rather than taking effect (#521).
None
hover_mode
('pointermove', 'click', 'off')
The chart’s starting value for the reader’s Hover Mode setting, written to the MAIDR schema as hoverMode: * "pointermove": moving the pointer over the chart moves the reader’s position and highlights what is under it (maidr.js’s default). * "click": the position moves only when the reader clicks. * "off": the pointer is ignored; the chart is keyboard only. * None (default): leave hoverMode out, so maidr.js uses its default. A reader who has changed Hover Mode in the chart’s settings keeps their own choice. A maidr.js release older than the field ignores it. Altair charts do not support it – their schema is built by the upstream Vega-Lite adapter – so a value other than None warns there and has no effect.