Closed zcshinee closed 7 months ago
The first image that you posted shows coordinate axes "X" and "Z" which is clearly not the cylindrical coordinates of the tutorial. Perhaps you mixed something up?
If I run python/examples/zone_plate.py
as-is using Meep built using the master branch (9d93e2b), the output image from Simulation.plot2D
of zone_plate_layout.py
is as expected:
Thank you for the prompt reply! I am running exactly the code but using Google Colab. I setup the environment by referring to: https://medium.com/@potingshen/learning-meep-fdtd-with-colab-for-free-b2f1dfa04f20 Would that possibly be the problem?
The notebook you are using is likely out of date. I have updated this notebook in #2785. This should hopefully fix it.
Closing as completed.
I got strange structure from plot2D when running python/examples/zone_plate.py of Tutorial/Focusing Properties of a Binary-Phase Zone Plate:
According to https://github.com/NanoComp/meep/pull/2136, the correct plot should be:
Is this a bug in the plot2D function?