Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
245 views
in Technique[技术] by (71.8m points)

python - show error bars in multi line plot using matplotlib, data from excel file

I'm very new to this platform and am trying to use it for data visualization. I have an excel file with timepoint data for multiple cultures, and am trying to plot those lines along with the range of values for each timepoint.

This post shows almost exactly what I'm trying to do but instead of pulling from a file, the values are directly included in the script: show error bar in multi line plot using matplotlib

Is there a way I can assign max/min values to the different variables in the excel file?

Example of dataset

df = pd.DataFrame({'Time_h': ['0', '14.5', '16.5'],
         'Spargeone': [0.146, 0.830, 0.609],
         'Spargetwo': [0.129, 0.640, 0.591],
         'Spargethree': [0.131, 0.826, 0.621],
         'SpargeC': [0.110, 0.118, 0.109]
        })
question from:https://stackoverflow.com/questions/66052821/show-error-bars-in-multi-line-plot-using-matplotlib-data-from-excel-file

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...