i have the following code
Code: Select all
\documentclass{standalone}
\usepackage[T1]{fontenc}
\usepackage[bitstream-charter]{mathdesign} %for a much better readable font
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
width=12cm, %the width of the box
height=8cm, %the height of the box
xlabel={Distance \lbrack $ mm $\rbrack},
xmax=28,
xmin=0,
ylabel={Intensity \lbrack arb. units \rbrack}, % \lbrack a.u. \rbrack,x
ymin=0,
mark=none,
legend style={
legend pos=north east,
font=\tiny,
draw=none
} % place the legend box in the right place at ={(0.85, 0.65)}
]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% call data from%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\pgfplotstableread{data.txt} %see attachment
\teff
\addplot [color = blue, mark=none, smooth, ] table[y=a] from \teff;
\addlegendentry{Spectrum w/o filter};
\addplot [color = red, mark=none, smooth, ] table[y=b] from \teff;
\addlegendentry{Spectrum with 200 nm Al filter}; each nth point=2
\end{axis}
\end{tikzpicture}
\end{document}

Code: Select all
\begin{figure}
\centering
\includegraphics{}
\end{figure}
Thanks in advance