import matplotlib.pyplot as plt

# Datos actualizados de ancho y temperaturas (sin sub Temp)
widths = [0.03, 0.06, 0.09, 0.12]
pv_temp = [78.91, 78.87, 79.13, 79.71]
absorber_temp = [77.83, 78.27, 78.67, 79.34]
htf_temp = [77.75, 78.02, 78.25, 78.45]

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

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

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

# Graficar temperatura HTF (tono naranja original)
ax.plot(widths, htf_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('Ancho de la cara 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(77.5, 80.2)

# Ajuste de límites del eje X
ax.set_xlim(min(widths) - 0.01, max(widths) + 0.01)

# Establecer marcas del eje X
ax.set_xticks(widths)

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