Skip to content

Commit

Permalink
DOC: attempt to fix docs for nearfield
Browse files Browse the repository at this point in the history
  • Loading branch information
lavakyan committed Dec 12, 2021
1 parent 4bb0c7f commit 2ce08b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/source/scripting/nearfield.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Incident beam with wavelength is 385 nm is directed by Z axis and have X polzari
.. literalinclude:: mstm_nearfield.py
:lines: 2-18

Result image::
Resulting image:

.. image:: mstm_nearfield.png

Expand Down
3 changes: 3 additions & 0 deletions mstm_studio/nearfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ def write(self, filename):
self.field[i, j]))

def plot(self):
'''
Show 2D field distribution
'''
x, y = self._get_grid_hv()
xx, yy = np.meshgrid(x, y)
xx = np.transpose(xx)
Expand Down

0 comments on commit 2ce08b0

Please sign in to comment.