You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
367 KiB
367 KiB
None
<html lang="en">
<head>
</head>
</html>
In [1]:
from pathlib import Path
import sys
PROJECT_ROOT = Path.cwd().parent
sys.path.insert(0, str(PROJECT_ROOT))
print("Project Root:", PROJECT_ROOT)
from src.visualizacion import (plot_xy, comparar_rondas, comparar_experimentos,
plot_3D, plot_color_map, plot_dual_axis,
plot_con_ajuste)
from src.data_loader import (apply_filter, load_all)
DATA_DIR = PROJECT_ROOT / "data"
data = load_all(DATA_DIR)
print("Uploaded Data:", len(data))
In [6]:
ronda = 1
experimento = 3
df = data[(ronda, experimento)]
df_f = apply_filter(df, row_start=35, row_end=66)
df_f1 = apply_filter(df, row_start=11, row_end=66)
plot_con_ajuste(df, x_col="Voltaje Electrodos (V)", y_col="Corriente Electrodos (A)",
label_datos="Datos")
plot_con_ajuste(df_f, x_col="Voltaje Electrodos (V)", y_col="Resistencia")
comparar_rondas(data, experimento=2, x_col="Voltaje Electrodos (V)",
y_col= "Corriente Electrodos (A)",
filter_fn=lambda df: apply_filter(df,row_start=11,row_end=66))
plot_color_map(df_f, x_col="Voltaje Electrodos (V)", y_col="Corriente Electrodos (A)",
z_col="Temperatura")
plot_color_map(df_f1, x_col="Voltaje Electrodos (V)", y_col="Corriente Electrodos (A)",
z_col="Temperatura")
plot_dual_axis(df_f, x_col="Voltaje Electrodos (V)", y1_col="Resistencia",
y2_col="Temperatura")
plot_3D(df_f1, x_col="Voltaje Electrodos (V)", y_col="Corriente Electrodos (A)", z_col="Temperatura")
Out[6]: