I am working on some statistical tables with tikzpicture and I am unable to solve two situations: a) change the mathematical environment of pgf so that the values ​​of the figure have the same typography as the rest of the table; b) change the unit of measure to Spanish, that is, the point to separate thousand units and the comma to separate decimals.

I leave one of the boxes and the result I get.

Thank you


      scale only axis,
      legend style={draw=black,legend cell align=left, anchor=north, at={(0.5,-0.13)}},
      enlargelimits=0.1, %controla el tamaño de la caja en la cual estan las barras
      symbolic x coords={1913,1923,1930,1937-8,1944-5,1960,1971},
      x tick label style={/pgf/number format/1000 sep=,},%style={rotate=30, anchor=east, align=center}
      bar width=6mm, %ancho de la barra individual
          %ymin=0, % descomentá si queres ver desde cero
      nodes near coords, %si lo descomentas sale el valor en cada barra
      nodes near coords style={text=black},
      nodes near coords align={vertical},
      %grid=major %coloca la grilla de fondo
\addplot[black!20,fill] coordinates {
\addlegendentry{Capital top 100 (USD corrientes)};
\addplot[black,fill]  coordinates {
\addlegendentry{Capital top 100 industriales (USD corrientes)};
\captionof{figure}{\textbf{Capital 100 mayores EE industriales/capital 100 mayores EE (b)/(a), en millones de USD.} Fuente: \gls{BDEEA}/ \gls{FCAD} PICT 2010/0501. Disponible en \url{http://empexargentina.com}.}\label{figura2-1q}

enter image description here

  • 2
    The Spanish notation can be achieved with comma as in the example \pgfmathprintnumber [fixed,fixed zerofill,precision=5,use comma] {12345.6789} on p. 321 of the pgfplots manual. The other question may only be answered if you provide us with a complete MWE, i.e. a compilable document that starts with \documentclass and ends with \end{document}.
    – user121799
    Commented Aug 31, 2018 at 13:06
  • 1
    I guess that you can adjust the font by replacing \begin{tikzpicture} by \begin{tikzpicture}[font=\cuadrosTTT] and/or adding font=\cuadrosTTT to the options of the axis.
    – user121799
    Commented Aug 31, 2018 at 13:26
  • To obtain Spanish notation in pgfplots (throughout the document), put this in your preamble: \pgfkeys{/pgf/number format/.cd, use comma, set thousands separator={.}, fixed}
    – Bibi
    Commented Aug 31, 2018 at 16:13
  • Dear Bibi, thank you for your solution, it is very successful. Commented Sep 6, 2018 at 15:23

1 Answer 1


To obtain Spanish notation in pgfplots (throughout the document), a solution is to put this in your preamble:

\pgfkeys{/pgf/number format/.cd, use comma, set thousands separator={.}, fixed}

The (numerous) options for number formatting can be found in the pgfplotstable documentation (which comes with pgfplots). What was used here is explained below.

use comma: use comma to separate decimals

set thousands separator={.}: self-explanatory

fixed: round the number to a fixed number of digits after the period, discarding any trailing zeros

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .