root_mcp.extended.analysis.plotting module

Plotting module for ROOT-MCP.

root_mcp.extended.analysis.plotting.generate_plot(data, plot_type='histogram', fit_data=None, options=None, config=None)[source]

Generate a plot from analysis data.

Parameters:
  • data (dict[str, Any]) – Analysis result (histogram data)

  • plot_type (str) – Type of plot (histogram, etc.)

  • fit_data (dict[str, Any] | None) – Optional fit results to overlay

  • options (dict[str, Any] | None) – Plotting options (title, labels, etc.)

  • config (Any | None) – Configuration object with plotting settings

Returns:

Dictionary with base64 encoded image

Return type:

dict[str, str]