import matplotlib.pyplot as plt
# Nuevos datos de ancho y temperatura
widths = [0.03, 0.06, 0.09, 0.12]
pv_temp = [78.91, 78.75, 78.92, 79.51]
absorber_temp = [77.83, 78.21, 78.56, 79.25]
htf_inlet_temp = [77.74, 78.02, 78.24, 78.45]
# Configuración del tamaño de la figura
fig, ax = plt.subplots(figsize=(12, 8))
# Graficar temperatura PV
ax.plot(widths, pv_temp, marker='o', color='blue', linestyle='-', linewidth=2, label='Temperatura de los PV')
# Graficar temperatura Absorber
ax.plot(widths, absorber_temp, marker='s', color='green', linestyle='-', linewidth=2, label='Temperatura del absorbedor')
# Graficar temperatura HTF inlet
ax.plot(widths, htf_inlet_temp, marker='d', color='orange', linestyle='-', linewidth=2, label='Temperatura del HTF de salida')
# Configuración de etiquetas y título
ax.set_ylabel('Temperatura (°C)', fontsize=20)
ax.set_xlabel('Ancho de la cara del SRC-PVT (m)', fontsize=20)
ax.tick_params(axis='both', labelsize=20)
# Título del gráfico
ax.set_title('', fontsize=22)
# Leyenda
ax.legend(loc='upper left', fontsize=20)
# Acentuar el marco del gráfico
for spine in ax.spines.values():
spine.set_edgecolor('black')
spine.set_linewidth(2)
# Ajuste de límites del eje Y
ax.set_ylim(77.5, 80)
# Ajuste de diseño
fig.tight_layout()
# 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: