MathCoRL now supports creating visual charts to analyze the performance of prompting methods.
- Compare Input Tokens, Output Tokens, Execution Time, Cost between methods
- Display average of each metric
- Easily identify which method is most effective
- Pie Chart: Cost distribution by each method
- Scatter Plot: Relationship between token count and cost
- Help optimize budget
- Box Plot: Execution time distribution by method
- Scatter Plot: Relationship between tokens and time
- Identify bottlenecks
- Stacked Bar: Input vs Output tokens by method
- Token Efficiency: Output/Input token ratio
- Distribution: Token distribution of each method
python mathcorl.py chart --type all# Method comparison
python mathcorl.py chart --type comparison
# Cost analysis
python mathcorl.py chart --type cost
# Time analysis
python mathcorl.py chart --type time
# Token analysis
python mathcorl.py chart --type tokens# Save all charts
python mathcorl.py chart --type all --save
# Save specific chart
python mathcorl.py chart --type cost --save# View data from last 12 hours
python mathcorl.py chart --hours 12
# View data from last 7 days
python mathcorl.py chart --hours 168When using --save, charts will be saved in the charts/ directory:
charts/
├── method_comparison_20250710_075147.png
├── cost_analysis_20250710_075148.png
├── time_analysis_20250710_075148.png
└── token_analysis_20250710_075148.png
pip install matplotlib seaborn pandas- Style: Seaborn v0.8 with "husl" palette
- Resolution: 300 DPI for high quality
- Format: PNG with bbox_inches='tight'
Method Avg Input Avg Output Avg Time Avg Cost
FPP 1,806 33 1.77s $0.000775
CoT 412 208 4.73s $0.000497
PAL 154 196 4.02s $0.000376
PoT 642 109 7.57s $0.000431
Zero-Shot 32 31 1.87s $0.000063
- Zero-Shot: Fastest & cheapest for simple problems
- FPP: High input tokens due to function definitions
- CoT: Balanced reasoning with detailed output
- PAL: Best cost/performance ratio
- PoT: Slowest but executable code
UserWarning: Glyph 128202 (\N{BAR CHART}) missing from font(s) Arial.
Solution: These warnings don't affect functionality. Emojis in titles won't display but charts will work normally.
💡 No tracking data found in the last 24 hours.
Solution: Run a few solve commands first to get data:
python mathcorl.py solve --method fpp "What is 2+2?"
python mathcorl.py solve --method cot "What is 2+2?"❌ Required libraries not installed.
Solution: Install dependencies:
pip install matplotlib seaborn pandas- Run multiple tests first to get diverse data
- Use --save to save charts for reports
- Customize --hours to focus on specific timeframe
- Combine with stats command for both text and visual analysis
# View stats in text format
python mathcorl.py stats
# Export raw data
python mathcorl.py export --format json
# Generate charts
python mathcorl.py chart --type all
# Clear old data
python mathcorl.py clear-logs