add example showing how to make an elliptical grating

This commit is contained in:
Jan Petykiewicz 2017-04-19 18:55:44 -07:00
parent ff76626e21
commit f25f6966e0

22
examples/ellip_grating.py Normal file
View File

@ -0,0 +1,22 @@
# Quick script for testing arcs
import numpy
import masque
from masque import shapes
def main():
pat = masque.Pattern()
for rmin in numpy.arange(10, 15, 0.5):
pat.shapes.append(shapes.Arc(
radii=(rmin, rmin),
width=0.1,
angles=(-numpy.pi/4, numpy.pi/4)
))
pat.visualize()
if __name__ == '__main__':
main()