I'm having trouble positioning a tikzpicture where I'd like it in relation to the
\item
I'm nesting it under.Code: Select all
Code, edit and compile here:
\begin{enumerate}[label=\roman*)]\item Where A is the age in years of a junior runner, A $<$ 16 reads as `A is less than 16'.\vspace {3mm}\item\begin{figure}[H]\centering\begin{tikzpicture}[dot/.style={draw, fill=#1, circle, inner sep=1.5pt},filled/.style={dot},open/.style={dot=white}]\begin{axis}[x=12mm,axis y line=none,axis x line=center,xtick align=outside,xtick={9,...,16},xmin=8, xmax=17,ymin=0, ymax=1,xlabel=$x$,xlabel style={anchor=north}]\addplot [black]coordinates {(9,.1) (16,.1)}node [filled, at start] {}node [open] {}node [above, midway] {A};\end{axis}\end{tikzpicture}\end{figure}\end{enumerate}
I'm looking to have the second item number [ii)] above the number line. I've played around with some float options but haven't had any luck. What am I doing wrong? Thanks in advance!