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 = [78.8, 79.98, 81.61, 83.46, 85.46, 87.59]
absorber_temp = [78.49, 79.84, 81.52, 83.4, 85.42, 87.55]
htf_inlet_temp = [78.34, 79, 79.61, 80.19, 80.76, 81.32]
# 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='PV temperature')
# Graficar temperatura Absorber
ax.plot(diameters, absorber_temp, marker='s', color='green', linestyle='-', linewidth=2, label='Absorber temperature')
# Graficar temperatura HTF inlet
ax.plot(diameters, htf_inlet_temp, marker='d', color='orange', linestyle='-', linewidth=2, label='HTF inlet temperature')
# Configuración de etiquetas y título
ax.set_ylabel('Temperature (°C)', fontsize=20)
ax.set_xlabel('Diameter of pipe (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()
To embed this program on your website, copy the following code and paste it into your website's HTML: