Skip to content

Commit db8753e

Browse files
authored
Update README.md
1 parent 46d9ee8 commit db8753e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ from matplotlib import pyplot as plt
2929
### of the multilayer structure you want to simulate
3030
structure = {
3131
### actual materials the structure is made from... note terminal layers are air and
32-
### central layer is tungsten (W)
33-
### values are stored in the attribute self.n
32+
### top-side layer (layer upon which light is incident) is SiO2.
33+
### Refractive index values are stored in the attribute self.n
3434
'Material_List': ['Air', 'SiO2', 'TiO2', 'Au', 'Air'],
3535
### thickness of each layer... terminal layers must be set to zero
3636
### values are stored in attribute self.d
@@ -44,7 +44,9 @@ structure = {
4444
coated_au_film = multilayer(structure)
4545

4646
### create a plot of the reflectivity of the coated au film - use red lines
47-
plt.plot(coated_au_film.lambda_array, coated_au_film.reflectivity_array, 'red')
47+
### the wavelengths are stored in SI units so we will multiply by 1e9 to
48+
### plot them in nanometers
49+
plt.plot(1e9*coated_au_film.lambda_array, coated_au_film.reflectivity_array, 'red')
4850
plt.show()
4951
```
5052

0 commit comments

Comments
 (0)