import matplotlib.pyplot as plt
# Datos
relacion_concentracion = [20, 18, 16, 14, 12, 10, 8, 6, 4]
temp_pv = [84.09, 82.71, 81.33, 79.96, 78.59, 77.22, 75.85, 74.49, 73.14]
temp_absorbedor = [82.54, 81.33, 80.12, 78.91, 77.7, 76.5, 75.3, 74.1, 72.91]
temp_sustrato = [82.47, 81.26, 80.05, 78.84, 77.63, 76.43, 75.23, 74.03, 72.83]
temp_htf_salida = [82.46, 81.24, 80.03, 78.83, 77.62, 76.42, 75.22, 74.02, 72.83]
# Crear figura y ejes
fig, ax = plt.subplots()
# Graficar
ax.plot(relacion_concentracion, temp_pv, marker='o', linestyle='--', color='blue', label='Temp. PV')
ax.plot(relacion_concentracion, temp_absorbedor, marker='s', linestyle='--', color='red', label='Temp. absorbedor')
ax.plot(relacion_concentracion, temp_sustrato, marker='^', linestyle='--', color='green', label='Temp. sustrato')
ax.plot(relacion_concentracion, temp_htf_salida, marker='D', linestyle='--', color='navy', label='Temp. HTF de salida')
# Ajustes de estilo
plt.grid(False)
plt.rcParams.update({'font.family': 'Times New Roman'})
plt.title('Temperaturas Estimadas vs Relación de Concentración', fontsize=14)
plt.xlabel('Relación de concentración del PTC')
plt.ylabel('Temperatura (°C)')
ax.legend(loc='upper left')
# Mostrar el gráfico
plt.show()
To embed this program on your website, copy the following code and paste it into your website's HTML: