Re: Le mie (dis)avventure con TikZ

#96734
lorenzo.pantieri
Partecipante
    Up
    0
    Down
    ::


    `\begin{tikzpicture}[font=\small]
    \begin{axis} [width=0.56\textwidth,
    axis lines=middle,
    xmin=-3,xmax=3,ymin=-5,ymax=5,
    enlargelimits,
    xtick={-1.732,1.732},
    xticklabels={$-\sqrt{3}$,$\sqrt{3}$},
    ytick={},
    xlabel=$x$,
    ylabel=$y$]

    \draw [blue,thick,dashed] (axis cs:1.732,-6) — (axis cs:1.732,6);
    \draw [blue,thick,dashed] (axis cs:-1.732,-6) — (axis cs:-1.732,6);

    \draw (axis cs:1.732,0) [blue,fill=blue,very thick] circle (2.0pt);
    \draw (axis cs:-1.732,0) [blue,fill=blue,very thick] circle (2.0pt);
    \draw (axis cs:0,0) [blue,fill=blue,very thick] circle (2.0pt);
    \end{axis}
    \end{tikzpicture}`
    Come faccio a eliminare del tutto le etichette sull’asse y? 🙁

    Ho visto empiricamente che impostando
    `ytick={0}`
    funziona. Va bene così?

    Go to top