Re: Pacchetto Tikz

#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

Go to top