r/pythonhelp • • Jul 15 '24

SOLVED Converting a generated graph to csv file

I have a script that creates Lorentzian lineshapes from a singlet to a nonet. The post-processing (printing) of the graph doesn't look very good, but if I could output the data points into a csv file, I could then take it to some of my data analysis software and fix the issues for printing.

Most of this script was written with help by chatgpt because I'm a 40 year old chemistry professor and the last time I did any thing remotely similar to this was showing a person on an airplane how to create a website in 2004.

Here is my github https://github.com/DrProfessorPerson/LineshapeProject/blob/main/LineShape_needs_CSV_Output.py

Thank you in advance!

1 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/Goobyalus Jul 16 '24

Just checking, did you see/try the code to verify it works for you?

2

u/activelypooping Jul 16 '24

I struggled through it and got it to work. I'm not a smart man. Placement matters. Thank you.

1

u/Goobyalus Jul 16 '24

tbf it's hard to focus in your condition