Skip to content

Commit f5e4d43

Browse files
committed
fix: add real values into two entries
1 parent 775250f commit f5e4d43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/source/examples/diffraction_objects_example.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ You could simply load them both as diffraction objects and plot them together on
8181

8282
.. code-block:: python
8383
84-
calculated = DiffractionObject(xcalc, ycalc, "d")
85-
measured = DiffractionObject(xmeas, ymeas, "tth", wavelength=0.717)
84+
calculated = DiffractionObject(xcalc=[0.251436, 0.251542, 0.251647], ycalc=[-1.020020, -1.036460, -1.142070], "d")
85+
measured = DiffractionObject(xmeas=[5.343089004093959198e-03, 5.343089004093959198e-03, 2.671544437772708711e-02],
86+
ymeas=[3.533951950073242188e+01, 3.585629272460937500e+01, 3.611056518554687500e+01], "q", wavelength=0.717)
8687
plt.plot(calculated.on_q()[0], calculated.on_q()[1])
8788
plt.plot(measured.on_q()[0], measured.on_q()[1])
8889
plt.show()

0 commit comments

Comments
 (0)