I have the following.
I'm trying to center the plot and putting \begin{center}
around the TikZ image does not work.
Also I'm trying to change the units of the x-axis. The x-axis is used to represent the time. The axis is currently using seconds and I had to zoom in with xmin and xmax to get the result. Now there is a *10^(-2)
at the bottom but I would like to have milliseconds or microseconds labeled at each tick.
This is the code I have now.
\begin{center}
\begin{tikzpicture}
\begin{axis}[xlabel=tijd,
ycomb, ymin=0, ymax=4, xmin=0.0248, xmax=0.0255,
enlarge y limits=false,
width=15cm, height=5cm,
tick align = outside,
grid = major,
%scaled x ticks = false,
yticklabels={X, 0, settings, macroblock, picture},
%x tick label style={/pgf/number format/fixed}
]
\addplot +[mark=none] table {seperatemb.dat};
\end{axis}
\end{tikzpicture}
\end{center}
\documentclass
), and you should include some dummy data.\begin{adjustbox}{center}
(see How can I center a too wide table?), or usetrim axis left
in the\begin{tikzpicture}[...]
options to make the y tick labels not count towards the bounding box.