Re: L’arte di fare grafici di funzione con LaTeX

#73913
lorenzo.pantieri
Partecipante
    Up
    0
    Down
    ::


    Il file sombrero.txt che ottengo con le tue ultime istruzioni è questo:
    `-6.28319
    6.28319
    0.0577652

    -6.02673
    6.28319
    0.0756038

    -5.77027
    6.28319
    0.0913834

    -5.51382
    6.28319
    0.104665

    -5.25736
    6.28319
    0.115132

    -5.0009
    6.28319
    0.122594

    -4.74445
    6.28319
    0.126989

    -4.48799
    6.28319
    0.128374

    -4.23153
    6.28319
    0.126914

    -3.97508
    6.28319
    0.122866

    -3.71862
    6.28319
    0.116562

    -3.46216
    6.28319
    0.108383

    -3.20571
    6.28319
    0.098745

    -2.94925
    6.28319
    0.0880765

    -2.69279
    6.28319
    0.0768006

    -2.43634
    6.28319
    0.0653207

    -2.17988
    6.28319
    0.0540089

    -1.92342
    6.28319
    0.0431979

    -1.66697
    6.28319
    0.0331757

    -1.41051
    6.28319
    0.0241849

    -1.15405
    6.28319
    0.0164226

    -0.897598
    6.28319
    0.0100437

    -0.641141
    6.28319
    0.00516494

    -0.384685
    6.28319
    0.00186892

    -0.128228
    6.28319
    0.000208181

    0.128228
    6.28319
    0.000208181

    0.384685
    6.28319
    0.00186892

    0.641141
    6.28319
    0.00516494

    0.897598
    6.28319
    0.0100437

    1.15405
    6.28319
    0.0164226

    1.41051
    6.28319
    0.0241849

    1.66697
    6.28319
    0.0331757

    1.92342
    6.28319
    0.0431979

    2.17988
    6.28319
    0.0540089

    2.43634
    6.28319
    0.0653207

    2.69279
    6.28319
    0.0768006

    2.94925
    6.28319
    0.0880765

    3.20571
    6.28319
    0.098745

    3.46216
    6.28319
    0.108383

    3.71862
    6.28319
    0.116562

    3.97508
    6.28319
    0.122866

    4.23153
    6.28319
    0.126914

    4.48799
    6.28319
    0.128374

    4.74445
    6.28319
    0.126989

    5.0009
    6.28319
    0.122594

    5.25736
    6.28319
    0.115132

    5.51382
    6.28319
    0.104665

    5.77027
    6.28319
    0.0913834

    6.02673
    6.28319
    0.0756038

    6.28319
    6.28319
    0.0577652
    `
    Anche con il codice
    `\begin{tikzpicture}
    \begin{axis}
    \addplot3 [surf,domain=-2*pi:2*pi,z buffer=sort]
    file
    {sombrero.txt};
    \end{axis}
    \end{tikzpicture}`
    non ottengo la figura correttamente. 🙁

    Go to top