Re: pgfplots e parametri nelle opzioni di \addplot

#71646
Liverpool
Partecipante
    Up
    0
    Down
    ::

    egreg9″ post=70845Tirare a indovinare il codice mi riesce male.

    Cioè vorresti sapere il codice che ho scritto io? Ma non funziona… Comunque:
    `\documentclass{standalone}
    \usepackage{pgfplots}

    \begin{document}
    \begin{tikzpicture}
    \begin{axis}
    \def\n{10}
    \pgfmathsetmacro{\fine}{\n-1}
    \foreach \i in {0,…,\fine} {
    \foreach \j in {1,…,6}
    \addplot[header=false, x index=\i, y index=???] {file.dat};}
    \end{axis}
    \end{tikzpicture}
    \end{document}`

    Il file.dat in allegato è un esempio con due righe e 70 colonne.

    [attachment=181]file.zip[/attachment]

    Attachments:
    You must be logged in to view attached files.

    Go to top