themisim.visualize_results¶
- themisim.visualize_results(df, *, data_root=None, cache_dir=None, cols=6, tile_size=2.2, cmap='gray', download=True, title=None)[source]¶
Render query results in a grid, like the dashboard’s results view.
- Parameters:
df (DataFrame) – Output of
themisim.query.query()(columnssite, datetime, score, source_cdf), best match first.data_root (str | Path, optional) – Root of locally-available CDFs (the same tree
themis-downloadwrites). Frames are read from here when present.cache_dir (str | Path, optional) – Where to download CDFs not found under
data_root. Defaults todata_rootif given, else./themis-cdf-cache.cols (int) – Grid columns (the app uses 6).
tile_size (float) – Per-tile size in inches.
cmap (str) – Matplotlib colormap (grayscale by default, matching the app display).
download (bool) – Fetch missing CDFs from the archive. Set False for offline use.
title (str, optional) – Figure suptitle.
- Return type:
matplotlib.figure.Figure