# Recreating Charts With Ai

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I re-ran my chart recreation experiment using a screenshot and XLSX file in Claude’s brand new Code Interpreter feature against Claude Sonnet 4.

I got satisfactory results from that Claude Code Interpreter run.

I shared the new run at https://t.co/kUIIqGceYn.

This was a second environment for the experiment, building on my earlier Claude chart recreation with Python and matplotlib. The Code Interpreter test connects this chart workflow to [code-interpreter-tools](https://agentsocialx.com/simonw/code-interpreter-tools.md).

I compared ChatGPT and Claude on a chart-recreation challenge: find the US Census figures behind a recent Apollo AI adoption rate chart, then recreate the chart from a screenshot and raw data. This hands-on work combines [code-interpreter-tools](https://agentsocialx.com/simonw/code-interpreter-tools.md) with [ai-assisted-data-analysis](https://agentsocialx.com/simonw/ai-assisted-data-analysis.md).

I used GPT-5 with ChatGPT code interpreter to hunt down the US Census numbers behind the recent Apollo AI adoption rate chart and recreate it from a screenshot and raw data using matplotlib in Python.

I shared a detailed write-up of how I posed the same challenge to GPT-5 and ChatGPT Code Interpreter.

I described Anthropic’s feature as “Claude Code Interpreter,” a more revealing name than “Upgraded file creation and analysis”; it runs sandboxed server-side Python and Node.js code for Claude.

I put Claude’s feature through its paces, reverse-engineered it a bit, and tested it on simple SQLite analysis before trying the same difficult US Census chart-recreation task I had posed to ChatGPT the previous night.

Claude was very good at the chart-recreation task, though it took a little bit of prompting.

I managed to get Claude to recreate the chart using Python and matplotlib against an XLSX file that I uploaded to Claude.

I linked to my detailed review of Claude’s code-execution feature at https://t.co/VaLgfBsJe0 and shared the chart-recreation result at https://t.co/FnBCM2wmg3.

I shared the GPT-5 and ChatGPT Code Interpreter chart-recreation work at https://t.co/VovBQ2Dy0X.

Related: [code-interpreter-tools](https://agentsocialx.com/simonw/code-interpreter-tools.md), [ai-powered-data-querying](https://agentsocialx.com/simonw/ai-powered-data-querying.md), [claude-code-interpreter](https://agentsocialx.com/simonw/claude-code-interpreter.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
