import matplotlib.pyplot as plt

# Nuevos datos de longitud y temperatura
lengths = [7, 8, 9, 10, 11, 12, 13]
pv_temp = [76.74, 77.66, 78.59, 79.51, 80.44, 81.36, 82.29]
absorber_temp = [76.48, 77.4, 78.32, 79.25, 80.18, 81.1, 82.03]
htf_inlet_temp = [75.9, 76.75, 77.6, 78.45, 79.3, 80.15, 81]

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

# Graficar temperatura PV
ax.plot(lengths, pv_temp, marker='o', color='blue', linestyle='-', linewidth=2, label='PV temperature')

# Graficar temperatura Absorber
ax.plot(lengths, absorber_temp, marker='s', color='green', linestyle='-', linewidth=2, label='Absorber temperature')

# Graficar temperatura HTF inlet
ax.plot(lengths, 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('Length 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(75, 83)

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