-
Notifications
You must be signed in to change notification settings - Fork 0
CLI Reference
Nick edited this page Dec 18, 2025
·
1 revision
All command line options for Chart2CSV.
python -m chart2csv.cli.main INPUT [OPTIONS]| Argument | Description |
|---|---|
INPUT |
Path to chart image (PNG, JPG) or folder for batch mode |
| Option | Description | Example |
|---|---|---|
-o, --output FILE |
Output CSV path | --output data.csv |
--metadata FILE |
Output JSON metadata | --metadata meta.json |
--overlay FILE |
Save visual overlay | --overlay check.png |
--output-dir DIR |
Output folder (batch mode) | --output-dir results/ |
| Option | Description | Example |
|---|---|---|
--chart-type TYPE |
Force chart type: scatter, line, bar
|
--chart-type scatter |
--x-scale SCALE |
X-axis scale: linear, log
|
--x-scale log |
--y-scale SCALE |
Y-axis scale: linear, log
|
--y-scale log |
| Option | Description | Example |
|---|---|---|
--crop X1,Y1,X2,Y2 |
Crop to specific region | --crop 50,30,750,600 |
--x-axis Y |
X-axis Y position (pixels) | --x-axis 550 |
--y-axis X |
Y-axis X position (pixels) | --y-axis 80 |
--calibrate |
Manual calibration mode | --calibrate |
| Option | Description | Example |
|---|---|---|
--use-mistral |
Use Mistral AI for OCR | --use-mistral |
--no-cache |
Disable OCR result caching | --no-cache |
| Option | Description | Example |
|---|---|---|
--batch |
Process folder of images | --batch |
python -m chart2csv.cli.main chart.pngpython -m chart2csv.cli.main chart.png --overlay check.pngpython -m chart2csv.cli.main chart.png --use-mistralpython -m chart2csv.cli.main figures/ --batch --output-dir results/python -m chart2csv.cli.main chart.png --crop 100,50,800,600python -m chart2csv.cli.main chart.png --y-scale log