Skip to content

Commit

Permalink
Re #7083 Adding user example
Browse files Browse the repository at this point in the history
  • Loading branch information
raquelalvarezbanos committed Feb 23, 2015
1 parent 07023db commit bf371e4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Code/Mantid/docs/source/algorithms/PlotAsymmetryByLogValue-v1.rst
Expand Up @@ -141,4 +141,22 @@ Output:
Y values (asymmetry): [ 0.14542059 0.13674275 0.12017568]
X values (sample magn. field): [ 1350. 1360. 1370.]

**Example - Calculating asymmetry as a function of the sample mean temperature:**

.. testcode:: ExLogValueFunction

ws = PlotAsymmetryByLogValue(FirstRun="MUSR00015189",
LastRun="MUSR00015191",
LogValue="sample_temp",
Function="Mean")
print "Y values (asymmetry):", ws.readY(0)
print "X values (sample magn. field):", ws.readX(0)

Output:

.. testoutput:: ExLogValueFunction

Y values (asymmetry): [ 0.15004357 0.14289412 0.12837688]
X values (sample magn. field): [ 290. 290. 290.]

.. categories::

0 comments on commit bf371e4

Please sign in to comment.