Hi,

I like to plot Touchstone files (see
http://en.wikipedia.org/wiki/Scattering_parameters#List_format) without
changing the files themselves. The header lines consist of a mixture of
# and ! as comment sign.

Is there a way to either add ! to the list of recognized comment signs
(or better to make the recognized comment signs user-configurable) or to
skip a certain amount of header lines?

Minimal example:

\documentclass{article}
\usepackage{pgfplots}
\begin{filecontents}{data.dat}
! Some comments
# GHz dB
! another comment line
1 0
2 -10
3 0
\end{filecontents}
\begin{document}
\begin{tikzpicture}
  \begin{axis}
    \addplot table [x index=0,y index=1] {data.dat};
  \end{axis}
\end{tikzpicture}
\end{document}

Thanks, Chris


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to