Python scripts to plot experimental and simulation data on the same plot.
- numpy
- csv
- matplotlib
pip install numpy matplotlib csv
Export experimental data from excel as csv file including only necessary columns for the plots (frequency, magnitude)
Export simulation data from simulation graph in awr into a txt file (which will already be formatted in a correct way for you)
Put these files in the same directory of the python scripts
Edit the config.json file and save
{
"title": "Magnitude of transfer function in degrees for Op-AMP",
"xlabel": "Frequency (Hz)",
"ylabel": "Magnitude (dB)",
"experimentalDataLocation": "experimentalData.csv",
"simulationDataLocation": "simulationData.txt",
"hasSimulationData": true
}python freq_res_multiple.py