\documentclass{standalone} \usepackage{tikz} \usepackage{amsmath} \usepackage{verbatim}…
- User
\documentclass{standalone} \usepackage{tikz} \usepackage{amsmath} \usepackage{verbatim} \usetikzlibrary{shapes, arrows.meta, positioning}
\begin{document} \begin{tikzpicture}[scale=1, every node/.style={font=\small}]
code% Definición de estilos \tikzstyle{support} = [rectangle, draw=black, fill=gray!30, minimum width=4cm, minimum height=0.5cm] \tikzstyle{sample} = [rectangle, draw=black, fill=blue!20, minimum width=2cm, minimum height=6cm] \tikzstyle{weight} = [rectangle, draw=black, fill=red!40, minimum width=0.5cm, minimum height=0.5cm] \tikzstyle{vernier} = [rectangle, draw=black, fill=green!30, minimum width=1.5cm, minimum height=0.7cm] \tikzstyle{arrow} = [thick, ->, >=Stealth] \tikzstyle{label} = [font=\bfseries] % Soporte \node[support] (support) at (0,0) {}; \node[below=0.1cm of support] {Soporte}; % Muestra de plastilina \node[sample] (sample) at (0,4) {}; \node at (0,4.3) {Plastilina}; % Pesos \foreach \i in {-0.4, 0, 0.4} { \node[weight] (weight\i) at (\i, 4.75) {}; } \node at (0,5.3) {Pesos}; % Flecha de fuerza axial \draw[arrow, thick, blue] (0,4.75) -- (0,6) node[midway, right] {Fuerza Axial \( P \)}; % Calibrador Vernier (axial) \node[vernier] (vernier1) at (2,5) {Vernier Axial}; \draw[arrow, thick, purple] (vernier1.west) -- (sample.east) node[midway, above] {\(\Delta L\)}; % Calibrador Vernier (transversal) \node[vernier] (vernier2) at (-2,5) {Vernier Transversal}; \draw[arrow, thick, purple] (vernier2.east) -- (sample.west) node[midway, above] {\(\Delta D\)}; % Flechas de deformación \draw[thick, dashed, orange, ->] (-1,4) -- (-1,4.5) node[midway, left] {Deformación Transversal}; \draw[thick, dashed, orange, ->] (1,4) -- (1,4.5) node[midway, right] {Deformación Transversal}; % Leyendas adicionales \node[above=1cm of sample] {\textbf{Arreglo Experimental}}; % Área de medición inicial \draw[dashed, thick] (-1,4) rectangle (1,10); \node[anchor=south] at (0,10) {Dimensiones Iniciales \( L_0, D_0 \)}; - Assistant