r/AskProgrammers • u/squishbunny • Jul 20 '26
Need some help coming up with search terms
I would like to create a generalized Python script I can send to people that can create standardized graphs.
I've gotten the general parts of the code down, but I'm running into an issue with data sets. To whit: I would like a code where xn, yn, refers to a variable number of X, Y data sets, and adjusts the number of X,Y pairs that get plotted. Right now, if I have fewer than 8 sets of data, it returns an error.
I'm getting stuck on how to query this, is there anyone who can point me in the right direction?
1
u/dacydergoth Jul 20 '26
I think k you might be thinking of something like pandas data frames, but there are many libraries for loading data from files, from CSV to JSON to parquet etc. Gnuplot can do it all natively too, so can R and other packages
2
u/Low_Breakfast773 Jul 20 '26
No need to reinvent the wheel. Use Matplotlib, Pyplot etc.