summaryrefslogtreecommitdiff
path: root/examples/example_two_dimensional_peak.py
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example_two_dimensional_peak.py')
-rw-r--r--examples/example_two_dimensional_peak.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/example_two_dimensional_peak.py b/examples/example_two_dimensional_peak.py
index 96612bd..8b732fc 100644
--- a/examples/example_two_dimensional_peak.py
+++ b/examples/example_two_dimensional_peak.py
@@ -19,6 +19,7 @@ from lmfit.lineshapes import gaussian2d, lorentzian
# depends on coordinates `(x, y)`. The most general case of experimental
# data will be irregularly sampled and noisy. Let's simulate some:
npoints = 10000
+np.random.seed(2021)
x = np.random.rand(npoints)*10 - 4
y = np.random.rand(npoints)*5 - 3
z = gaussian2d(x, y, amplitude=30, centerx=2, centery=-.5, sigmax=.6, sigmay=.8)