I'm learning mathematica, and right now trying to plot a graph with error bars. What I would like to do is to import 3 lists with x values(1/viscosity), y values(permeance), and error values, and plot this using listplot. I can plot the x vs y values using "Thread" function, however when I try to use "Around" to include errors, I either get problems or no graphs at all. Is it possible to plot the graph in this fashion (I don't want to add error values one by one since I will be having a large number of data points produced, and I would like to keep importing my data from a previously produced excel files).
Example: [1]: https://i.sstatic.net/1sR0U.png
Code:
viscosityinverse =
Import["C:\\Users\\ilkvi\\Desktop\\Professional\\0-METU CHE \
PhD\\2-Research\\0-Experimental\\Flux Experiments\\Viscosity vs \
Permeance\\Hagen Poiseuille Equations.xlsx", {"Data", 1, All, 2}]
viscosityinverse = Drop[viscosityinverse, 1]
permeance =
Import["C:\\Users\\ilkvi\\Desktop\\Professional\\0-METU CHE \
PhD\\2-Research\\0-Experimental\\Flux Experiments\\Viscosity vs \
Permeance\\Hagen Poiseuille Equations.xlsx", {"Data", 1, All, 3}]
permeance = Drop[permeance, 1]
error = Import[
"C:\\Users\\ilkvi\\Desktop\\Professional\\0-METU CHE \
PhD\\2-Research\\0-Experimental\\Flux Experiments\\Viscosity vs \
Permeance\\Hagen Poiseuille Equations.xlsx", {"Data", 1, All, 4}]
error = error[error, 1]
ListPlot[Thread[{viscosityinverse, About[Thread[permeance,error]]}]]
data = Import["..." , {"Data", 1, 2 ;; All}];
. 2. UseListPlot[MapThread[Around, {data[[All, 2]], data[[All, 3]]}]]
. $\endgroup$