localghost wrote:
I should have asked for the EPS file because this question can only be answered if we have the EPS file present and can test its behaviour when included in a document. So, please attach the EPS file to your next post (no need to put it into an archive since the server accepts EPS).
- epsFig.eps
- eps-file
- (22.1 KiB) Downloaded 487 times
localghost wrote:In my last reply I mentioned a LaTeX solution. I took your *.xls file and exported it to *.csv (comma separated values, CSV). This is the format that the LaTeX package pgfplots accepts for plotting datasets. In form of code it looks like this.
I have tried doing the same thing as you. Putting the following in my document:
Code: Select all
\begin{tikzpicture}[font=\scriptsize]
\begin{axis}[
scaled ticks=false,
xmin=-0.015,
xmax=0.015,
xlabel={Time / s},
xticklabel style={/pgf/number format/.cd,fixed,precision=3},
ymin=-0.5,
ymax=0.4,
ylabel={Voltage / V},
% ytick={-0.5,-0.4,...,0.5},
yticklabel style={/pgf/number format/.cd,fixed,precision=1},
]
\addplot[red] table {Kapitler/Forsog/Data/Rectify/data_fra_11_12/TEK0.csv};
\end{axis}
\end{tikzpicture}
\end{document}
And the following to my preamble:
Code: Select all
\usepackage[T1]{fontenc}
\usepackage{pgfplots}%Ting til grafer (sat ind december 2012)
\pgfplotsset{
compat=newest,
xlabel near ticks,
ylabel near ticks
} %Ting til grafer (sat ind december 2012)
The document class is
\documentclass[a4paper,11pt,fleqn,twoside,openright]
I don't know if this makes a difference.
The CSV file is attached. When i save the CSv file i choose the punktuation: Westeurope (Windows-1252/WinLatin1).
- TEK0.csv
- (72.57 KiB) Downloaded 506 times
The following errors comes up:
Code: Select all
! Package pgfplots Error: Sorry, the requested column number '1' in table 'Kapitler/Forsog/Data/Rectify/data_fra_11_12/TEK0.csv' does not exist!? Please verify you used the correct index 0 <= i < N..See the pgfplots package documentation for explanation.Type H <return> for immediate help.... ...sog/Data/Rectify/data_fra_11_12/TEK0.csv};
Code: Select all
! Package PGF Math Error: Could not parse input '"-0,01213","-1,12",,,,,,,' asa floating point number, sorry. The unreadable part was near '"-0,01213","-1,12",,,,,,,'..See the PGF Math package documentation for explanation.Type H <return> for immediate help.... ...sog/Data/Rectify/data_fra_11_12/TEK0.csv};
Is the package manual what comes up when I follow this link
http://ctan.org/tex-archive/graphics/pg ... b/pgfplots (which I find when I follow your link). I admit that I haven't really read it through, I find all this pretty confusing. Do I have to download something to use the packages?