import matplotlib.pyplot as plt

# Nuevos datos de diámetro y temperatura
diameters = [0.015, 0.03, 0.045, 0.06, 0.075, 0.09]
pv_temp = [81.96, 82.74, 83.85, 85.08, 86.34, 87.61]
absorber_temp = [81.79, 82.59, 83.7, 84.93, 86.2, 87.48]
htf_inlet_temp = [81.17, 81.16, 81.16, 81.15, 81.15, 81.14]

# Configuración del tamaño de la figura
fig, ax = plt.subplots(figsize=(12, 8))

# Graficar temperatura PV
ax.plot(diameters, pv_temp, marker='o', color='blue', linestyle='-', linewidth=2, label='Temperatura de los PV')

# Graficar temperatura Absorber
ax.plot(diameters, absorber_temp, marker='s', color='green', linestyle='-', linewidth=2, label='Temperatura del absorbedor')

# Graficar temperatura HTF inlet
ax.plot(diameters, 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('Diámetro de la tubería 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(78, 88)

# Ajuste de diseño
fig.tight_layout()

# Mostrar el gráfico
plt.show()

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: