Troubleshooting Guide for STC-V4 MCMC & Plot Codes
1.Error: Unknown attribute (line_width/contour_linewidth in getdist)
Solution: Upgrade getdist to version 1.3.0
Command: pip install --upgrade getdist
The plot_config file has removed all high-version exclusive parameters.
2.Error: add_legend() missing required positional argument
Fixed in fig2_planck\[_contour.py](_contour.py), legend label list is explicitly passed.
3.Error: object has no attribute 'save'
Replaced g.save() with standard matplotlib g.fig.savefig() for universal compatibility.
4.FileNotFoundError: chain_*.npy missing
You must run mcmc\[_sampler.py](_sampler.py) first before plotting. Do not delete the appendixc folder manually.
5.Windows absolute path error (D:/XXX removed)
All scripts use relative paths starting with ./, no system-specific hard-coded directories.
6.LaTeX mathematical symbol parsing crash
Legend texts are plain text without nested dollar signs; axis labels retain standard math notation.
7.Insufficient memory during sampling
Edit mcmc\[_sampler.py](_sampler.py), reduce nwalkers or nsteps variables to lower computation load.
8.Python version incompatibility
Use Python 3.10 ~ 3.12; versions below 3.9 may cause package breakdown.