I have a problem with plotting the data of a recent experiment. I'm quite new to Mathematica, but searched the documentation and forums without solving my issue.
My data is stored in a .csv document, and all I want to do is plot it to have a nice grafic for my .pdf-file.
My code:
data:=Import["file.csv","CSV",HeaderLines->2]
ListPlot[data]
If I do this, all I get is this:
In this plot the x-axis should be the y-axis and the other way round.
The first rows of my file:
1,,
Wavelength (nm),Abs,
700.0443115,0.08416349441,
699.0369263,0.08557280153,
698.0291138,0.08568932861,
697.0210571,0.08601997793,
696.0126343,0.08787558973,
695.0039063,0.08656696975,
693.994812,0.08839249611,
692.9854126,0.0919964388,
691.975708,0.09093111753,
690.9656372,0.09060627967,
689.9552612,0.09237643331,
688.9445801,0.09219068289,
687.9335327,0.09430380911,
687.0666504,0.09386152774,
686.0550537,0.09532273561,
...
...
...
I would be extremely thankful, if someone could help me ;)
Greetings
Konstantin
data
and your second plotsdata1
. Be sure to use the same variable in both lines. Also, use=
instead of:=
in the first line. $\endgroup$