import matplotlib.pyplot as plt

# Datos de longitud y temperatura
lengths = [7, 8, 9, 10, 11, 12, 13]
pv_temp = [77.74, 78.36, 79.02, 79.71, 80.42, 81.15, 81.9]
absorber_temp = [77.37, 78.00, 78.66, 79.34, 80.05, 80.78, 81.53]
htf_temp = [75.91, 76.75, 77.60, 78.45, 79.30, 80.15, 81.00]

# Crear figura
fig, ax = plt.subplots(figsize=(12, 8))

# Temperatura PV
ax.plot(lengths, pv_temp, marker='o', linestyle='-', linewidth=2,
        label='Temperatura PV')

# Temperatura absorbedor (VERDE)
ax.plot(lengths, absorber_temp, marker='s', color='green', linestyle='-', linewidth=2,
        label='Temperatura absorbedor')

# Temperatura HTF (NARANJA)
ax.plot(lengths, htf_temp, marker='d', color='orange', linestyle='-', linewidth=2,
        label='Temperatura HTF de salida')

# Etiquetas
ax.set_ylabel('Temperatura (°C)', fontsize=20)
ax.set_xlabel('Longitud de la tubería del SRC-PVT (m)', fontsize=20)
ax.tick_params(axis='both', labelsize=20)

# Título vacío
ax.set_title('', fontsize=22)

# Leyenda
ax.legend(loc='upper left', fontsize=20)

# Marco
for spine in ax.spines.values():
    spine.set_edgecolor('black')
    spine.set_linewidth(2)

# Límites Y
ax.set_ylim(75, 83)

fig.tight_layout()
plt.show()

Embed on website

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