Charts and visualizations
Code Interpreter captures Matplotlib output in two useful forms:
- static charts contain PNG or SVG data that you can save or send to a client;
- structured charts contain labels, scales, and values that your application can render interactively.
Both forms are returned in execution.results. Choose static output when the appearance should be identical to the Python chart. Choose structured data when the application needs tooltips, filtering, or its own visual style.