import matplotlib.pyplot as plt
# Tus datos específicos
longitud_de_onda1 = [ 1430, 1440, 1450, 1460,1470,1480,1490,1500,1510,1520,1530,1540,1550]
potencia1 = [ 1.53e-1, 9.48e-2, 1.59e-1, 3.65e-1, 4.56e-1, 5.09e-1, 5.85e-1, 5.38e-1, 4.03e-1, 3.77e-1, 2.77e-1, 1.29e-1, 8.00e-2] # Reemplaza con tus valores
longitud_de_onda2 = [ 1430, 1440, 1450, 1460,1470,1480,1490,1500,1510,1520,1530,1540,1550]
potencia2 = [ 1.66e-2, 1.13e-1, 1.1e-1, 2.73e-1, 4.44e-1, 4.68e-1, 5.62e-1, 5.67e-1, 4.63e-1, 3.69e-1, 3.43e-1, 1.78e-1, 9.74e-2] # Reemplaza con tus valores
#esta se hace si se alcanza el tiempo
longitud_de_onda3 = [1430, 1440, 1450, 1460,1470,1480,1490,1500,1510,1520,1530,1540,1550]
potencia3 = [ 3.35e-2, 5.40e-2, 1.02e-1, 1.42e-1, 1.35e-1, 1.12e-1, 1.236e-1, 1.239e-1, 1.91e-1, 3.79e-1, 5.00e-1, 4.59e-1,4.44e-1] # Reemplaza con tus valore<s
longitud_de_onda4 = [1430, 1440, 1450, 1460,1470,1480,1490,1500,1510,1520,1530,1540,1550]
potencia4 = [ 1.75e-1, 1.43e-1, 1.2e-1, 1.03e-1, 9.15e-2, 8.2e-2, 6.25e-2, 5.67e-2, 7.43e-2, 9.11e-2, 8.62e-2, 6.32e-2,3.36e-2] # Reemplaza con tus valore<s
plt.figure(figsize=(10,5))
plt.plot(longitud_de_onda1, potencia1, 'o-', label='n=1.335 (1.5%)')
plt.plot(longitud_de_onda2, potencia2, 'o-', label='n=1.34 (2.0%)')
plt.plot(longitud_de_onda3, potencia3, 'o-', label='n=1.39 (5.0%)')
plt.plot(longitud_de_onda4, potencia4, 'o-', label='n=1.47 (20.0%)')
plt.title('Output Power vs Wavelength (According with agarose´s concentration)')
plt.xlabel('Wavelength (nm)')
plt.ylabel('Output Power (mW)')
plt.legend() # Muestra la leyenda
plt.grid(True)
plt.show()
To embed this project on your website, copy the following code and paste it into your website's HTML: