
Suponha que eu tenha um nó em forma de círculo. Como posso tornar a borda mais espessa?
\node[circle, draw=blue!80, set interno=0pt, tamanho mínimo=12pt] (1) em (0,0) {1};
Responder1
A borda do nó é um caminho, você pode usar as mesmas opções para a \path
, por exemplo ultra thin
, thick
, very thick
, e assim por diante:
\node[circle, draw=blue!80, thick, inner sep=0pt, minimum size=12pt] (1) at (0,0) {1};
A line width
chave também funciona:
\node[circle,draw=blue!80, line width=1mm, inner sep=0pt,minimum size=12pt] (1) at(0,0) {1};
Todas as larguras de linha predefinidas são
\tikzset{
ultra thin/.style= {line width=0.1pt},
very thin/.style= {line width=0.2pt},
thin/.style= {line width=0.4pt},% thin is the default
semithick/.style= {line width=0.6pt},
thick/.style= {line width=0.8pt},
very thick/.style= {line width=1.2pt},
ultra thick/.style={line width=1.6pt}
}
Código
\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}[
every node/.append style={circle, draw=blue!80, inner sep=0pt, minimum size=12pt}]
\node (1) at (0,0) {1};
\node[thick] (2) at (1,0) {2};
\node[line width=1mm] (3) at (2,0) {3};
\end{tikzpicture}
\end{document}
Saída
Responder2
Você pode alterar a espessura do caminho global conforme abaixo, portanto não há necessidade de alterá-la aqui e ali:
\documentclass[tikz]{standalone}
\begin{document}
\tikzstyle{every node}=[font=\large]
\tikzstyle{every path}=[line width=2pt]
\begin{tikzpicture}[
every node/.append style={circle, draw=blue!80, inner sep=2pt, minimum size=12pt}]
\node (1) at (0,0) {1};
\node[] (2) at (1,0) {2};
\node[] (3) at (2,0) {3};
\end{tikzpicture}
\end{document}
Saída (use a ferramenta inkscape para converter pdf em png)
Saída (use a ferramenta de conversão para converter PDF em PNG)