
Supongamos que tengo un nodo en forma de círculo. ¿Cómo puedo hacer que su borde sea más grueso?
\node[círculo, dibujar=azul!80, sep interior=0pt, tamaño mínimo=12pt] (1) en (0,0) {1};
Respuesta1
El borde del nodo es una ruta, puede usar las mismas opciones para a \path
, por ejemplo ultra thin
,,, etc.thick
very thick
\node[circle, draw=blue!80, thick, inner sep=0pt, minimum size=12pt] (1) at (0,0) {1};
La line width
clave también funciona:
\node[circle,draw=blue!80, line width=1mm, inner sep=0pt,minimum size=12pt] (1) at(0,0) {1};
Todos los anchos de línea predefinidos son
\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}
Producción
Respuesta2
Puede cambiar el grosor de la ruta global como se muestra a continuación, por lo que no es necesario cambiarlo aquí y allá:
\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}
Salida (use la herramienta Inkscape para convertir pdf a png)
Salida (use la herramienta de conversión para convertir pdf a png)