Last active
August 29, 2015 14:04
-
-
Save lsfalimis/f6e9967cf9a5b1a27c93 to your computer and use it in GitHub Desktop.
#LaTeX rotate datavisualization tick label
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\begin{figure}[ht] | |
\caption{Caption}\label{fig1} | |
\floatfoot{Data source: Yearbook (\cite{NBS:2000})} | |
\centering | |
\begin{tikzpicture} | |
\datavisualization | |
[scientific axes=clean, | |
x axis={ | |
attribute=year, | |
length=4cm, | |
label=Year, | |
ticks={ | |
many, | |
style={ | |
/pgf/number format/set thousands separator={} | |
}, | |
node style={rotate=60,anchor=east} | |
} | |
}, | |
y axis=grid, | |
y axis={ | |
attribute=something, | |
label={Something (unit)}, | |
ticks={ | |
step=0.5 | |
}, | |
}, | |
visualize as scatter] | |
data { | |
year, something | |
2000, 100000000 | |
2001, 200000000 | |
2002, 300000000 | |
2003, 400000000 | |
}; | |
\end{tikzpicture} | |
\end{figure} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment