Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docs/source/examples/diffraction_objects_example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ You could simply load them both as diffraction objects and plot them together on

.. code-block:: python

calculated = DiffractionObject(xcalc, ycalc, "d")
measured = DiffractionObject(xmeas, ymeas, "tth", wavelength=0.717)
calculated = DiffractionObject(xcalc=[0.251436, 0.251542, 0.251647], ycalc=[-1.020020, -1.036460, -1.142070], "d")
measured = DiffractionObject(xmeas=[5.343089004093959198e-03, 5.343089004093959198e-03, 2.671544437772708711e-02],
ymeas=[3.533951950073242188e+01, 3.585629272460937500e+01, 3.611056518554687500e+01], "q", wavelength=0.717)
plt.plot(calculated.on_q()[0], calculated.on_q()[1])
plt.plot(measured.on_q()[0], measured.on_q()[1])
plt.show()
Expand Down
23 changes: 23 additions & 0 deletions news/docs-add-data.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* No News Added: Add real values into example

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
Loading