Inicio
Esta librería permite crear gráficos de manera rápida y con pocos conocimientos de programación. El mínimo código necesario es:
<html>
<head>
<script type="module" src="https://robemorin.github.io/tlacuache/src/tlacuache.mjs"></script>
</head>
<body>
.
.
.
</body>
</html>
Cada uno de los elemento cuenta con ayuda con solo invocarlo sin parámetros
<tlacuache-milimetrado></tlacuache-milimetrado>
Resultado
Estadística
Distribución normal
Código:
<tlacuache-dist-normal dim="300,480" s="2" mean="10" xtick="10,7,11" xmin="6" xlabel="Peso (Kg)"/>
Resultado:
Cuartiles
Código:
<tlacuache-cuartil q="[-4,-0,0,6,8]" lim="-6,10,2" dim="280,400" xlabel='eje x' > </tlacuache-cuartil>
<tlacuache-cuartil q="[-4,-0,0,6,8],[-3,-2,0,1,3]" lim="-6,10,2" dim="280,400" xlabel='eje x' ></tlacuache-cuartil>
Resultado:
Diagrama de Venn
Código:
<tlacuache-venn ancho="400" s1="0" s2="0.3" s3="$$\frac{1}{4}$$"/></tlacuache-venn/>
<tlacuache-venn ancho="400" n="3" s1="$$\frac{3}{2}$$" s2="$$\frac{\omega}{2}$$" s4="0.1" /></tlacuache-venn/>
Resultado:
Diagrama de Venn
Código:
<tlacuache-venn ancho="400" s1="0" s2="0.3" s3="$$\frac{1}{4}$$"/></tlacuache-venn/>
<tlacuache-venn ancho="400" n="3" s1="$$\frac{3}{2}$$" s2="$$\frac{\omega}{2}$$" s4="0.1" /></tlacuache-venn/>
Resultado:
Polígono de frecuencias acumuladas
Código:
<tlacuache-ejes size="320,480" xlabel="" ylabel="Frecuencias Acumuladas" xlim="0,100" dx="10" ylim="0,160" dy="20" >
<tlacuache-poli_fa x="10,30,50,60,100" y="0,20,60,100,160"></tlacuache-poli_fa>
</tlacuache-ejes>
Resultado:
Histograma
Código:
<tlacuache-ejes size="320,480" xlabel="" ylabel="Frecuencias Acumuladas" xlim="0,55" dx="10" ylim="0,160" dy="20" >
<tlacuache-histograma inicio="15" paso="10" frecuencias="150,130,110,90" ></tlacuache-histograma>
</tlacuache-ejes>
Resultado:
Gráficas
Ejes
Código:
<tlacuache-ejes size="320,480" xlabel="Eje x" ylabel="Eje y" dx=".2" dy=".2" dpx="1" dpy="2">
</tlacuache-ejes>
Resultado:
Plot
Código:
<tlacuache-ejes size="320,480" xlabel="Eje x" ylabel="Eje y" dx=".2" dy=".2" dpx="1" dpy="2" >
<tlacuache-plot x="-.9,-.5,0,.5,.9" y="-.9,-.5,0,.5,.9" mark="o" color="red"></tlacuache-plot >
<tlacuache-plot x="-.9,-.5,0,.5,.9" y=".9,.5,0,-.5,-.9" mark="." color="blue"></tlacuache-plot >
<tlacuache-plot f='2*x**2-1' color="green"/></tlacuache-plot>
</tlacuache-ejes >
Resultado: