I'm having this problem with tikz in which I'm trying to create this simple number line but a load of unnecessary white spaces pops up:
\item
As a real-number-line graph:\\
\begin{tikzpicture}
\begin{axis}[
axis x line=middle,
axis y line=none,
xtick={-3,-2,...,4,5}
]
\addplot[line width=0.4mm, draw=blue][domain=-3:5]{0};
\addplot[draw=blue, fill=white, mark=*] coordinates {(-3,0)(1,0)(5,0)};
\end{axis}
\end{tikzpicture}
\item
Interval Notation:\\
The result looks like this:
How would I remove all this white space? Also, why is there so much white space?
Thanks.
\documentclass{...}
and ending with\end{document}
\pgfplotset{...,width=...}
and/or\pgfplotset{...,width=...}
somewhere in your file. If you remove this global option you should also be fine.\usepackage[margin=1in]{geometry}
but I doubt that affects anything..