Hi Christian,

Thank you for the useful feature request!

I have just
- added 'table/comment chars' key
- added 'table/skip first n' key.

Now,
\addplot table[comment chars=!] ....
or
\addplot table[skip first n=3] ...
will both result the desired input.

If you want to use the new features soon: watch out for the next 
unstable TDS built on http://pgfplots.sourceforge.net/ (will come before 
next sunday probably).

Best regards

Christian


Am 06.09.2010 16:34, schrieb Christian Mandel:
> 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


------------------------------------------------------------------------------
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