- Questo topic ha 4 risposte, 3 partecipanti ed è stato aggiornato l'ultima volta 9 anni, 5 mesi fa da .
-
Topic
-
Cari amici,
ecco un esempio minimale:
`
% !TeX encoding = UTF-8
% !TeX TS-program = xelatex
% !TeX spellcheck = it_IT\documentclass{article}
\usepackage{libertine}
\usepackage{tikz,pgfplots}
\usepgfplotslibrary{groupplots}\pgfplotsset{%
compat=1.9,
tick label style={font=\footnotesize\rmfamily},
every axis label={font=\footnotesize\rmfamily},
legend style={font=\footnotesize\rmfamily,draw=none},
label style={font=\footnotesize\rmfamily},
ylabel style={font=\footnotesize\rmfamily},
xticklabel style={rotate=90,font=\footnotesize\rmfamily},
yticklabel style={font=\footnotesize\rmfamily},
nodes near coords style={font=\footnotesize},
}\begin{document}
\begin{figure}[th]
\centering
\begin{tikzpicture}
\begin{axis}[
ybar = 0.6,
width=1.1\textwidth,
height=0.5\textheight,
xtick={0,1,2,3,4,5,6,7,8,9,10,11,12},
xticklabels={200 a.~C.,1 d.~C.,200,400,600,800,1000,1100,1200,1300,1400,1500,1600,1700},
nodes near coords,
axis x line*=bottom,
y axis line style={opacity=0},
yticklabels={\empty},
ytick style={draw=none},
]
\addplot [ybar,bar width=8pt,fill=blue,draw=black,]
coordinates{
(0,26)
(1,31)
(2,36)
(3,31)
(4,26)
(5,29)
(6,36)
(7,48)
(8,61)
(9,79)
(10,60)
(11,81)
(12,100)
};
\end{axis}
\end{tikzpicture}
\end{figure}
\end{document}
`Come si può notare il font usato sui numerini sopra gli istogrammi non coincide con il [tt]libertine[/tt]. Le soluzioni trovate sul web non paiono funzionare.
Potete suggerirmi una soluzione?
Ciao e grazie mille anticipate,
Domenico
- Devi essere connesso per rispondere a questo topic.