Tikz
Tikz
Tikz
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO TikZ
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO TikZ
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO TikZ
Aqu el punto y coma (;) es importante. Inmediatamente
compilamos y nos arrojara el siguiente resultado:
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO TikZ
podemos reducir el tamano y el color de nuestro circulo,
cambiando las dimensiones en nuestro codigo:
\fill[red] (1ex,1ex) circle (4ex);
Recalcamos que aqu el punto y coma (;) es importante. el
resultado obtenido es:
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO tikzpicture
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO tikzpicture
Por ejemplo, editemos el siguiente codigo:
\begin{center}
\selectlanguage{english}
\begin{tikzpicture}[>=stealth]
\draw [ >] (-1.5,0) (1.5,0);
\end{tikzpicture}
\selectlanguage{spanish}
\end{center}
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO tikzpicture
para que este codigo compile, es necesario escribir antes del
\begin{tikzpicture} el comando \selectlanguage{english} y al
final \selectlanguage{spanish}. Pero para que estos comandos
funcionen se debemos agregar, en el paquete
\usepackage[spanish]{babel} del preambulo,
\usepackage[spanish,english]{babel}. El resultado sera una
recta tal como muestra la figura:
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO tikzpicture
Hagamos por ejemplo, dos rectas perpendiculares que
asemejen a un plano coordenado, ecribamos el siguiente
codigo:
\begin{center}
\selectlanguage{english}
\begin{tikzpicture}[>=stealth]
\draw [ >] (-1.5,0) (1.5,0);
\draw [ >] (0,-1.5) (0,1.5);
\end{tikzpicture}
\selectlanguage{spanish}
\end{center}
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO tikzpicture
La grafica del codigo anterior seran dos rectas que asemejan
un plano de coordenadas
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO tikzpicture
ecribamos el siguiente codigo:
\begin{center}
\selectlanguage{english}
\begin{tikzpicture}[>=stealth]
\draw [ >] (-1.5,0) (1.5,0);
\draw [ >] (0,-1.5) (0,1.5);
\shadedraw (0.5,0.5) circle (0.5cm);
\end{tikzpicture}
\selectlanguage{spanish}
\end{center}
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO tikzpicture
Lo que me definira la figura:
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
EL COMANDO tikzpicture
para hacer un circulo con relleno de color, o un cuadrado con
relleno de color, usaremos el comando \filldraw.
\begin{center}
\selectlanguage{english}
\begin{tikzpicture}[>=stealth]
\draw [ >] (-1.5,0) (1.5,0);
\draw [ >] (0,-1.5) (0,1.5);
\filldraw [fill=red,,even odd rule]
(-1,-1) rectangle (0,0);
\filldraw[fill=magenta,even odd rule]
(0.5,0.5) circle(0.5);
\end{tikzpicture}
\selectlanguage{spanish}
Jhony Sandoval Ju
arez
\end{center}
GRAFICAS CON TIKZ
EL COMANDO tikzpicture
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
y = x2
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ
MUCHAS GRACIAS
Jhony Sandoval Ju
arez
GRAFICAS CON TIKZ