import matplotlib.pyplot as plt

# Nuevos datos de diámetro y temperatura
diameters = [0.02, 0.04, 0.06, 0.08, 0.1, 0.12, 0.14, 0.16, 0.18]
pv_temp = [136.4, 103.5, 92.64, 87.18, 83.91, 81.71, 80.14, 78.96, 78.04]
absorber_temp = [136.1, 103.3, 92.37, 86.92, 83.64, 81.45, 79.88, 78.7, 77.78]
htf_inlet_temp = [134.5, 102, 91.23, 85.89, 82.7, 80.57, 79.06, 77.92, 77.04]

# 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('Mass flow of HTF (kg/s)', fontsize=20)
ax.tick_params(axis='both', labelsize=20)

# Título del gráfico
ax.set_title('', fontsize=22)

# Leyenda
ax.legend(loc='upper right', 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(70, 140)

# 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: