2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-25 06:18:05 +02:00

percentage sign after number

This commit is contained in:
Martin Thoma 2013-09-17 21:12:59 +02:00
parent a57e772ff8
commit 1fb991baab
2 changed files with 4 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 41 KiB

Before After
Before After

View file

@ -14,21 +14,17 @@
date coordinates in=x, date coordinates in=x,
xticklabel={\year}, xticklabel={\year},
x tick label style={align=center, rotate=45}, x tick label style={align=center, rotate=45},
date ZERO=2010-01-01, % Set near lowest date yticklabel=$\pgfmathprintnumber{\tick}$\,\%,
xmin={1945-01-01}, % A date with no time is assumed to have a time of 00:00 date ZERO=1946-06-30,
xmin={1946-01-01},
xmax={2010-01-01}, xmax={2010-01-01},
extra y ticks={5}, extra y ticks={5},
/pgfplots/ytick={0,10,...,100}, /pgfplots/ytick={0,10,...,100},
%axis x line=middle,
%axis y line=middle,
%enlarge y limits=true,
ymin=0, ymax=100, ymin=0, ymax=100,
width=15cm, height=8cm, % size of the image width=15cm, height=8cm, % size of the image
grid = major, grid = major,
grid style={dashed, gray!30}, grid style={dashed, gray!30},
ylabel=\%, legend style={at={(1.15,1)}, anchor=north}
%xlabel=Jahr,
legend style={at={(1.2,1)}, anchor=north}
] ]
\addplot[blue, dashed, mark=triangle*] table [x=Wahltag, y=Wahlbeteiligung, col sep=comma] {landtagswahlen-in-bayern.csv}; \addplot[blue, dashed, mark=triangle*] table [x=Wahltag, y=Wahlbeteiligung, col sep=comma] {landtagswahlen-in-bayern.csv};
\addplot[black,mark=square*] table [x=Wahltag, y=CSU, col sep=comma] {landtagswahlen-in-bayern.csv}; \addplot[black,mark=square*] table [x=Wahltag, y=CSU, col sep=comma] {landtagswahlen-in-bayern.csv};