ptypy.core.xy.round_scan#
- ptypy.core.xy.round_scan(dr=1.5e-06, nr=5, nth=5, bullseye=True)#
Generates a round scan
- Parameters:
nr (int) – Number of radial steps from center,
nr + 1shells will be madedr (float) – Step size (shell spacing)
nth (int, optional) – Number of points in first shell
bullseye (bool) – If set false, point of origin will be ignored
- Returns:
pos – A (N,2)-array of positions.
- Return type:
ndarray
Examples
>>> from ptypy.core import xy >>> from matplotlib import pyplot as plt >>> pos = xy.round_scan() >>> plt.plot(pos[:,1], pos[:,0], 'o-'); plt.show()