Pacchetto Tikz

  • Creatore
    Topic
  • #98984
    Up
    0
    Down
    ::


    Salve a tutti
    Mi trovo a dover richiedere nuovamente il vostro prezioso aiuto. Sto utilizzando il pacchetto Tikz per fare degli istrogrammi e ho un problema.
    Sostanzialmente nell’asse delle ordinate ho dei valori che vanno da 0 a 0.008. Io vorrei si visualizzassero così mentre il risultato è come da immagine allegata.

    Suggerimenti?
    Allego codice compilabile

    `%******************************************************************
    % PACCHETTI
    %******************************************************************
    \documentclass[a4paper,11pt,openright,titlepage]{book}
    \usepackage[T1]{fontenc} %codifica font in uscita
    \usepackage[utf8]{inputenc} %lettere accentate da tastiera
    \usepackage[english,greek,italian]{babel} %lingue nel documento (la principale va sempre all'ultimo posto)
    \usepackage{url} %per scrivere gli indirizzi
    \usepackage{emptypage} %rimuove testate nelle pagine bianche a fine capitolo
    \usepackage{afterpage} %aggiungere pagine bianche
    \usepackage{booktabs} % tabelle
    \usepackage{tabularx} % tabelle di larghezza prefissata
    \usepackage{graphicx} % immagini
    \usepackage{subfig} % sottofigure, sottotabelle
    \usepackage{caption} % didascalie
    \captionsetup{format=hang, font=footnotesize, labelfont=bf, listformat=simple} %impostazioni didascalie
    \usepackage{listings} % codici
    \usepackage[font=small]{quoting} % citazioni
    \usepackage{amsmath,amssymb,amsthm} % matematica
    \usepackage{bm} % matematica
    \usepackage{mhchem} % formule chimiche
    \usepackage{chemfig} % figure chimica
    \usepackage[output-decimal-marker={,}]{siunitx} %virgola come separatore decimale
    \usepackage[italian]{varioref} % riferimenti completi della pagina
    \usepackage{setspace} %interlinea (default di latex=1)
    \usepackage{mhchem}
    \usepackage{rotating}
    \usepackage{array} %scrive formule chimiche
    \singlespacing
    \usepackage{pgfplots}
    \pgfplotsset{/pgf/number format/use comma,compat=newest}
    \usepackage{multirow}

    %******************************************************************
    % BIBLIOGRAFIA
    %******************************************************************
    \usepackage[autostyle,italian=guillemets]{csquotes}
    \usepackage[style=numeric, backend=biber]{biblatex}
    \addbibresource{FINE/BIBLIOGRAFIA.bib}
    \usepackage{hyperref} %link
    \hypersetup{hidelinks} %impostazioni visualizzazione link
    %******************************************************************
    % ALTRI PACCHETTI FINALI
    %******************************************************************
    \usepackage{tikz}
    \usetikzlibrary{arrows,decorations.pathmorphing,backgrounds,fit,positioning,shapes.symbols,chains}
    %******************************************************************
    % INIZIO DOCUMENTO
    %******************************************************************
    \begin{document}
    \begin{figure}
    \centering
    \begin{tikzpicture}
    \begin{axis} [ylabel={$\Delta$P (\%)},
    ymin=0,ymax=0.008,xtick=data, ymajorgrids=true,xtick pos=left, x tick label style=%
    {rotate=90,anchor=east},
    xticklabel interval boundaries,
    symbolic x coords={$Test\,1$,$Test\,2$,$Test\,3$,$Test\,4$,$0$}]
    \addplot[ybar interval,fill=cyan, draw=black, bar width=0.2cm]
    coordinates
    {($Test\,1$, 0.003) ($Test\,2$, 0.003)
    ($Test\,3$, 0.002) ($Test\,4$, 0.007) ($0$, 0)};
    \end{axis}
    \end{tikzpicture}
    \end{figure}
    \end{document}`

Visualizzazione 9 filoni di risposte
  • Autore
    Risposte
    • #98985
      GKT
      Partecipante
        Up
        0
        Down
        ::


        `\documentclass[a4paper,11pt]{book}

        \usepackage[T1]{fontenc}
        \usepackage[utf8]{inputenc}
        \usepackage[italian]{babel}
        \usepackage{pgfplots}

        \pgfplotsset{compat=newest,%
        /pgf/number format/.cd,%
        use comma,
        fixed,
        precision=4}

        \begin{document}
        \centering
        \begin{tikzpicture}
        \begin{axis}[ylabel={$\Delta$P (\%)},%
        ymin=0,%
        ymax=0.008,%
        xtick=data,%
        ymajorgrids=true,%
        xtick pos=left,%
        xticklabel style={rotate=90,anchor=east},%
        xticklabel interval boundaries,%
        symbolic x coords={$Test\,1$,$Test\,2$,$Test\,3$,$Test\,4$,$0$},%
        scaled ticks={false}]
        \addplot[ybar interval,fill=cyan, draw=black, bar width=0.2cm]
        coordinates
        {($Test\,1$, 0.003) ($Test\,2$, 0.003)
        ($Test\,3$, 0.002) ($Test\,4$, 0.007) ($0$, 0)};
        \end{axis}
        \end{tikzpicture}
        \end{document}`Fai attenzione alle opzioni passate a pgfplots.

        Lorenzo

      • #98986
        Up
        0
        Down
        ::


        ti ringrazio molto e ti chiedo: è possibile modificare la larghezza delle colonne?

        Marco

      • #98987
        GKT
        Partecipante
          Up
          0
          Down
          ::

          mbomb” post=98525ti ringrazio molto e ti chiedo: è possibile modificare la larghezza delle colonne?

          Marco

          Si può fare, ma nel tuo caso hai un [tt]xbar interval[/tt] come tipo di grafico, quindi l’opzione [tt]bar width=0.4cm[/tt] non ha effetto, in quanto lavori con intervalli di coordinate nell’asse delle ascisse (pagina 85 del manuale di pgfplots: questo tipo di grafico serve a ottenere barre di larghezza variabile in funzione del valore di ascissa dei dati presi in considerazione. Se quello che vuoi ottenere in realtà è un semplice diagramma a barre, questo può fare al caso tuo:
          `\documentclass[a4paper,11pt]{book}

          \usepackage[T1]{fontenc}
          \usepackage[utf8]{inputenc}
          \usepackage[italian]{babel}
          \usepackage{pgfplots}

          \pgfplotsset{compat=newest,%
          /pgf/number format/.cd,%
          use comma,
          fixed,
          precision=4}

          \begin{document}
          \centering
          \begin{tikzpicture}
          \begin{axis}[ylabel={$\Delta$P (\%)},%
          ymin=0,%
          ymax=0.008,%
          xtick=data,%
          ymajorgrids=true,%
          xtick pos=left,%
          xticklabel style={rotate=90},%
          symbolic x coords={$Test\,1$,$Test\,2$,$Test\,3$,$Test\,4$,$0$},%
          scaled ticks={false}]
          \addplot[ybar, fill=cyan, draw=black, bar width=12pt]
          coordinates
          {($Test\,1$, 0.003) ($Test\,2$, 0.003)
          ($Test\,3$, 0.002) ($Test\,4$, 0.007) ($0$, 0)};
          \end{axis}
          \end{tikzpicture}
          \end{document}`
          Lorenzo

        • #98988
          Up
          0
          Down
          ::


          grazie. Riprendo questa discussione in quanto ho un problema simile.
          Il codice compilabile è questo:

          `\documentclass[a4paper,11pt,openright,titlepage]{book}
          \usepackage[T1]{fontenc}
          \usepackage[utf8]{inputenc}
          \usepackage[english,greek,italian]{babel}
          \usepackage{pgfplots} %grafici
          \pgfplotsset{compat=newest,%
          /pgf/number format/%
          use comma,%
          every axis/.append style={font=\small},%
          legend style={font=\footnotesize},%
          tick label style={font=\small},%
          label style={font=\small}}

          \begin{document}
          \begin{figure}
          \centering
          \begin{tikzpicture}
          \begin{axis}
          [axis x line=bottom,
          axis y line=left,
          xmin=0,xmax,
          ymin=0,ymax,
          xlabel=Spostamento (mm),ylabel=Forza (N),
          scale only axis]
          \addplot [thick, black]
          coordinates
          {( 0 , 0 )
          ( 0.005 , 1.705839 )
          ( 0.01 , 3.411677 )
          ( 0.015 , 5.090527 )
          ( 0.02 , 6.51825 )
          ( 0.025 , 7.958208 )
          ( 0.03 , 9.418055 )
          ( 0.031 , 9.728544 )
          ( 0.032 , 10.039033 )
          ( 0.033 , 10.348471 )
          ( 0.034 , 10.657876 )
          ( 0.035 , 10.922135 )
          ( 0.036 , 11.213328 )
          ( 0.037 , 11.516548 )
          ( 0.038 , 11.808027 )
          ( 0.039 , 12.083864 )
          ( 0.04 , 12.381233 )
          ( 0.041 , 12.671669 )
          ( 0.042 , 12.949904 )
          ( 0.043 , 13.240546 )
          ( 0.044 , 13.529125 )
          ( 0.045 , 13.787681 )
          ( 0.046 , 14.069854 )
          ( 0.047 , 14.349357 )
          ( 0.048 , 14.581975 )
          ( 0.049 , 14.812682 )
          ( 0.05 , 15.081512 )
          ( 0.051 , 15.345426 )
          ( 0.052 , 15.553246 )
          ( 0.053 , 15.809169 )
          ( 0.054 , 16.058951 )
          ( 0.055 , 16.33837 )
          ( 0.056 , 16.573707 )
          ( 0.057 , 16.808512 )
          ( 0.058 , 17.026509 )
          ( 0.059 , 17.215165 )
          ( 0.06 , 17.431038 )
          ( 0.061 , 17.641136 )
          ( 0.062 , 17.833947 )
          ( 0.063 , 18.028993 )
          ( 0.064 , 18.216846 )
          ( 0.065 , 18.377709 )
          ( 0.066 , 18.513837 )
          ( 0.067 , 18.681176 )
          ( 0.068 , 18.812822 )
          ( 0.069 , 18.943636 )
          ( 0.07 , 19.032737 )
          ( 0.071 , 19.153256 )
          ( 0.072 , 19.24173 )
          ( 0.073 , 19.329289 )
          ( 0.074 , 19.369872 )
          ( 0.075 , 19.394847 )
          ( 0.076 , 19.435949 )
          ( 0.077 , 19.45166 )
          ( 0.078 , 19.408624 )
          ( 0.079 , 19.392023 )
          ( 0.08 , 19.298126 )
          ( 0.081 , 19.226395 )
          ( 0.082 , 19.084047 )
          ( 0.083 , 18.867722 )
          ( 0.084 , 18.721469 )
          ( 0.085 , 18.43114 )
          ( 0.086 , 18.109932 )
          ( 0.087 , 17.605899 )
          ( 0.088 , 17.00001 )
          ( 0.089 , 16.260241 )
          ( 0.09 , 15.025484 )
          ( 0.091 , 14.065129 )
          ( 0.092 , 13.28329 )
          ( 0.093 , 12.690327 )
          ( 0.094 , 12.089423 )
          ( 0.095 , 11.606486 )
          ( 0.096 , 11.115425 )
          ( 0.097 , 10.734727 )
          ( 0.098 , 10.326667 )
          ( 0.099 , 9.975051 )
          ( 0.1 , 9.647448 )
          ( 0.101 , 9.356472 )
          ( 0.102 , 9.011448 )
          ( 0.103 , 8.719415 )
          ( 0.104 , 8.464723 )
          ( 0.105 , 8.27792 )
          ( 0.106 , 8.039695 )
          ( 0.107 , 7.872963 )
          ( 0.108 , 7.587671 )
          ( 0.109 , 7.286387 )
          ( 0.11 , 7.167051 )
          ( 0.111 , 7.017955 )
          ( 0.112 , 6.666089 )
          ( 0.113 , 6.563091 )
          ( 0.114 , 6.433342 )
          };
          \end{axis}
          \end{tikzpicture}
          \caption{Prova}
          \label{fig:tpbt0.5}
          \end{figure}

          \end{document}`
          Ora chiedo:
          1. anche qua, ho provato ad applicare le impostazioni per visualizzare i valori dell’asse x in formato “fixed” ma senza successo.
          2. c è un modo per decidere l’intervallo di valori da stampare negli assi? ad esempio nelle ordinate io ho 0 – 5 – 10 – 15. è possiible aggiungere altri valori?

          grazie

        • #98989
          Up
          0
          Down
          ::

          mbomb” post=98952grazie. Riprendo questa discussione in quanto ho un problema simile.
          Il codice compilabile è questo:

          `\documentclass[a4paper,11pt,openright,titlepage]{book}
          \usepackage[T1]{fontenc}
          \usepackage[utf8]{inputenc}
          \usepackage[english,greek,italian]{babel}
          \usepackage{pgfplots} %grafici
          \pgfplotsset{compat=newest,%
          /pgf/number format/%
          use comma,%
          every axis/.append style={font=\small},%
          legend style={font=\footnotesize},%
          tick label style={font=\small},%
          label style={font=\small}}

          \begin{document}
          \begin{figure}
          \centering
          \begin{tikzpicture}
          \begin{axis}
          [axis x line=bottom,
          axis y line=left,
          xmin=0,xmax,
          ymin=0,ymax,
          xlabel=Spostamento (mm),ylabel=Forza (N),
          scale only axis]
          \addplot [thick, black]
          coordinates
          {( 0 , 0 )
          ( 0.005 , 1.705839 )
          ( 0.01 , 3.411677 )
          ( 0.015 , 5.090527 )
          ( 0.02 , 6.51825 )
          ( 0.025 , 7.958208 )
          ( 0.03 , 9.418055 )
          ( 0.031 , 9.728544 )
          ( 0.032 , 10.039033 )
          ( 0.033 , 10.348471 )
          ( 0.034 , 10.657876 )
          ( 0.035 , 10.922135 )
          ( 0.036 , 11.213328 )
          ( 0.037 , 11.516548 )
          ( 0.038 , 11.808027 )
          ( 0.039 , 12.083864 )
          ( 0.04 , 12.381233 )
          ( 0.041 , 12.671669 )
          ( 0.042 , 12.949904 )
          ( 0.043 , 13.240546 )
          ( 0.044 , 13.529125 )
          ( 0.045 , 13.787681 )
          ( 0.046 , 14.069854 )
          ( 0.047 , 14.349357 )
          ( 0.048 , 14.581975 )
          ( 0.049 , 14.812682 )
          ( 0.05 , 15.081512 )
          ( 0.051 , 15.345426 )
          ( 0.052 , 15.553246 )
          ( 0.053 , 15.809169 )
          ( 0.054 , 16.058951 )
          ( 0.055 , 16.33837 )
          ( 0.056 , 16.573707 )
          ( 0.057 , 16.808512 )
          ( 0.058 , 17.026509 )
          ( 0.059 , 17.215165 )
          ( 0.06 , 17.431038 )
          ( 0.061 , 17.641136 )
          ( 0.062 , 17.833947 )
          ( 0.063 , 18.028993 )
          ( 0.064 , 18.216846 )
          ( 0.065 , 18.377709 )
          ( 0.066 , 18.513837 )
          ( 0.067 , 18.681176 )
          ( 0.068 , 18.812822 )
          ( 0.069 , 18.943636 )
          ( 0.07 , 19.032737 )
          ( 0.071 , 19.153256 )
          ( 0.072 , 19.24173 )
          ( 0.073 , 19.329289 )
          ( 0.074 , 19.369872 )
          ( 0.075 , 19.394847 )
          ( 0.076 , 19.435949 )
          ( 0.077 , 19.45166 )
          ( 0.078 , 19.408624 )
          ( 0.079 , 19.392023 )
          ( 0.08 , 19.298126 )
          ( 0.081 , 19.226395 )
          ( 0.082 , 19.084047 )
          ( 0.083 , 18.867722 )
          ( 0.084 , 18.721469 )
          ( 0.085 , 18.43114 )
          ( 0.086 , 18.109932 )
          ( 0.087 , 17.605899 )
          ( 0.088 , 17.00001 )
          ( 0.089 , 16.260241 )
          ( 0.09 , 15.025484 )
          ( 0.091 , 14.065129 )
          ( 0.092 , 13.28329 )
          ( 0.093 , 12.690327 )
          ( 0.094 , 12.089423 )
          ( 0.095 , 11.606486 )
          ( 0.096 , 11.115425 )
          ( 0.097 , 10.734727 )
          ( 0.098 , 10.326667 )
          ( 0.099 , 9.975051 )
          ( 0.1 , 9.647448 )
          ( 0.101 , 9.356472 )
          ( 0.102 , 9.011448 )
          ( 0.103 , 8.719415 )
          ( 0.104 , 8.464723 )
          ( 0.105 , 8.27792 )
          ( 0.106 , 8.039695 )
          ( 0.107 , 7.872963 )
          ( 0.108 , 7.587671 )
          ( 0.109 , 7.286387 )
          ( 0.11 , 7.167051 )
          ( 0.111 , 7.017955 )
          ( 0.112 , 6.666089 )
          ( 0.113 , 6.563091 )
          ( 0.114 , 6.433342 )
          };
          \end{axis}
          \end{tikzpicture}
          \caption{Prova}
          \label{fig:tpbt0.5}
          \end{figure}

          \end{document}`
          Ora chiedo:
          1. anche qua, ho provato ad applicare le impostazioni per visualizzare i valori dell’asse x in formato “fixed” ma senza successo.
          2. c è un modo per decidere l’intervallo di valori da stampare negli assi? ad esempio nelle ordinate io ho 0 – 5 – 10 – 15. è possiible aggiungere altri valori?

          grazie

          1: `\pgfplotsset{compat=1.11,% da preferire rispetto a newest
          every axis/.append style={font=\small},
          legend style={font=\footnotesize},
          tick label style={font=\small},
          label style={font=\small},
          /pgf/number format/.cd,
          use comma,
          fixed,
          precision=2,
          }` Non è necessario mettere i % ovunque in questo caso. Ciò che importa è che nel tuo esempio il [tt].cd[/tt] non era presente quindi solo la chiave successiva era preceduta dal path corretto. Mettere .cd significa che ogni chiave dopo quel comando verrà preceduta dal path indicato; per questo motivo, il posto più comodo per inserire questi costrutti non è all’inizio del set di definizioni, ma alla fine. Altrimenti è necessario reinizializzare il path predefinito una volta esaurite le opzioni per il formato dei numeri.

          2: `\begin{axis}
          [axis x line=bottom,
          axis y line=left,
          xmin=0,
          ymin=0,
          ytick={0,3,6,9,12,15,18,21},
          yticklabels={0,3,6,9,12,15,18,21},
          xlabel=Spostamento (mm),ylabel=Forza (N),
          scale only axis]` La chiave [tt]ytick[/tt] permette di definire la propria scala, mentre [tt]yticklabels[/tt] le etichette. In questo caso sono uguali, ma `
          \begin{axis}
          [axis x line=bottom,
          axis y line=left,
          xmin=0,
          ymin=0,
          ytick={0,3,6,9,12,15,18,21},
          yticklabels={a,b,pippo,pluto,paperino},
          xlabel=Spostamento (mm),ylabel=Forza (N),
          scale only axis]
          ` funziona ugualmente.

          Ciao
          Claudio

        • #98990
          Up
          0
          Down
          ::


          ti ringrazio molto

          ciao
          marco

        • #98991
          Up
          0
          Down
          ::


          riapro questa conversazione poichè non capisco ancora una cosa. Posto il codice:

          `

          \documentclass[a4paper,11pt,openright,titlepage]{book}

          \usepackage{pgfplots}
          \usepgflibrary{arrows}
          \pgfplotsset{
          compat=1.11,
          every axis/.append style={font=\small},
          legend style={font=\footnotesize},
          tick label style={font=\small },
          label style={font=\small},
          /pgf/number format/.cd,
          use comma,
          fixed,
          precision=2,
          }

          \begin{document}

          \begin{figure}
          \centering
          {\begin{tikzpicture}
          \begin{axis}
          [axis x line=bottom,
          axis y line=left,
          xmin=0,
          xtick={0,0.01,0.02,0.03,0.04,0.05,0.06},
          ymin=0,
          minor tick num =1,
          grid=both,
          ylabel style={align=center}, ylabel={lunghezza (m)},
          xlabel=tempo (s),
          legend style={cells={anchor=east},
          legend pos=outer north east,
          }, enlargelimits=false]
          \addplot [mark repeat=2, very thick, red]
          coordinates {
          ( 0 , 0.00E+00 )
          ( 0.001 , 0.00E+00 )
          ( 0.001 , 1.00E+00 )
          ( 0.001 , 2.00E+00 )
          ( 0.002 , 2.00E+00 )
          ( 0.002 , 3.00E+00 )
          ( 0.003 , 3.00E+00 )
          ( 0.004 , 3.00E+00 )
          ( 0.004 , 4.00E+00 )
          ( 0.004 , 5.00E+00 )
          ( 0.005 , 5.00E+00 )
          ( 0.006 , 5.00E+00 )
          ( 0.006 , 6.00E+00 )
          ( 0.006 , 7.00E+00 )
          ( 0.007 , 7.00E+00 )
          ( 0.008 , 7.00E+00 )
          ( 0.008 , 8.00E+00 )
          ( 0.009 , 8.00E+00 )
          ( 0.01 , 8.00E+00 )
          ( 0.01 , 9.00E+00 )
          ( 0.01 , 1.00E+01 )
          ( 0.011 , 1.00E+01 )
          ( 0.011 , 1.10E+01 )
          ( 0.012 , 1.10E+01 )
          ( 0.012 , 1.20E+01 )
          ( 0.013 , 1.20E+01 )
          ( 0.013 , 1.30E+01 )
          ( 0.014 , 1.30E+01 )
          ( 0.015 , 1.30E+01 )
          ( 0.016 , 1.30E+01 )
          ( 0.016 , 1.40E+01 )
          ( 0.017 , 1.40E+01 )
          ( 0.017 , 1.50E+01 )
          ( 0.018 , 1.50E+01 )
          ( 0.018 , 1.60E+01 )
          ( 0.019 , 1.60E+01 )
          ( 0.02 , 1.60E+01 )
          ( 0.02 , 1.70E+01 )
          ( 0.021 , 1.70E+01 )
          ( 0.021 , 1.80E+01 )
          ( 0.022 , 1.80E+01 )
          ( 0.022 , 1.90E+01 )
          ( 0.023 , 1.90E+01 )
          ( 0.024 , 1.90E+01 )
          ( 0.025 , 1.90E+01 )
          ( 0.025 , 2.00E+01 )
          ( 0.025 , 2.10E+01 )
          ( 0.026 , 2.10E+01 )
          ( 0.027 , 2.10E+01 )
          ( 0.028 , 2.10E+01 )
          ( 0.028 , 2.20E+01 )
          ( 0.028 , 2.30E+01 )
          ( 0.029 , 2.30E+01 )
          ( 0.03 , 2.30E+01 )
          ( 0.031 , 2.30E+01 )
          ( 0.032 , 2.30E+01 )
          ( 0.032 , 2.40E+01 )
          ( 0.033 , 2.40E+01 )
          ( 0.033 , 2.50E+01 )
          ( 0.033 , 2.60E+01 )
          ( 0.034 , 2.60E+01 )
          ( 0.035 , 2.60E+01 )
          ( 0.035 , 2.70E+01 )
          ( 0.036 , 2.70E+01 )
          ( 0.036 , 2.80E+01 )
          ( 0.037 , 2.80E+01 )
          ( 0.038 , 2.80E+01 )
          ( 0.039 , 2.80E+01 )
          ( 0.039 , 2.90E+01 )
          ( 0.04 , 2.90E+01 )
          ( 0.041 , 2.90E+01 )
          ( 0.041 , 3.00E+01 )
          ( 0.042 , 3.00E+01 )
          ( 0.043 , 3.00E+01 )
          ( 0.044 , 3.00E+01 )
          ( 0.044 , 3.10E+01 )
          ( 0.045 , 3.10E+01 )
          ( 0.046 , 3.10E+01 )
          ( 0.046 , 3.20E+01 )
          ( 0.046 , 3.30E+01 )
          ( 0.047 , 3.30E+01 )
          ( 0.048 , 3.30E+01 )
          ( 0.049 , 3.30E+01 )
          ( 0.049 , 3.40E+01 )
          ( 0.05 , 3.40E+01 )
          ( 0.051 , 3.40E+01 )
          ( 0.052 , 3.40E+01 )
          ( 0.052 , 3.50E+01 )
          ( 0.053 , 3.50E+01 )
          ( 0.053 , 3.60E+01 )
          ( 0.054 , 3.60E+01 )
          ( 0.055 , 3.60E+01 )
          ( 0.055 , 3.70E+01 )
          ( 0.056 , 3.70E+01 )
          ( 0.056 , 3.80E+01 )
          ( 0.057 , 3.80E+01 )
          ( 0.057 , 3.90E+01 )
          ( 0.058 , 3.90E+01 )
          ( 0.059 , 3.90E+01 )
          ( 0.059 , 4.00E+01 )
          ( 0.06 , 4.00E+01 )
          ( 0.061 , 4.00E+01 )
          ( 0.062 , 4.00E+01 )
          ( 0.062 , 4.10E+01 )

          };
          \end{axis}
          \end{tikzpicture}}
          \end{figure}

          \end{document}

          `

          Non riesco a capire come mai i numeri nell’asse delle ascisse vengano visualizzati come 1*10^-2 piuttosto che 0.01.

          grazie ancora

        • #98992
          Up
          0
          Down
          ::

          mbomb” post=100172Non riesco a capire come mai i numeri nell’asse delle ascisse vengano visualizzati come 1*10^-2 piuttosto che 0.01.

          Inserisci l’opzione [tt]scaled ticks=false[/tt] fra quelle di axis. La motivazione la trovi in 4.15.3 Tick Scaling – Common Factors In Ticks del manuale.

          Ciao
          Claudio

        • #98993
          OldClaudio
          Partecipante
            Up
            0
            Down
            ::


            A parte l’indicazione di @cfiandra, la mia indicazione sarebbe quella di esprimere le ascisse in millisecondi, invece che in secondi; QUesta sarebbe l’indicazione delle norme ISO-UNI sui disegni/diagrammi.
            Avresti solo numeri intelri e non avresti problemi di nessun genere.

          • #98994
            Up
            0
            Down
            ::


            ringrazio ancora entrambi! sempre gentilissimi

            Marco

        Visualizzazione 9 filoni di risposte
        • Devi essere connesso per rispondere a questo topic.

        Go to top