Skip to content

Instantly share code, notes, and snippets.

@lsfalimis
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lsfalimis/f6e9967cf9a5b1a27c93 to your computer and use it in GitHub Desktop.
Save lsfalimis/f6e9967cf9a5b1a27c93 to your computer and use it in GitHub Desktop.
#LaTeX rotate datavisualization tick label
\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