Skip to content
Snippets Groups Projects
Commit 7bf63176 authored by Gigg, Martyn Anthony's avatar Gigg, Martyn Anthony
Browse files

Fix CustomWorkspace example to use new API. Refs #7344

The example used to old API and therefore did not work out of the box.
parent 63c3d3cc
No related merge requests found
/*WIKI*
Example of use in Python for create a simple histogram workspace, automatically populating the VerticalAxis with SpectraNumber values.
Example of use in Python for create a simple histogram workspace and automatically populating the VerticalAxis with SpectraNumber values.
<div style="border:1pt dashed black; background:#f9f9f9;padding: 1em 0;">
<source lang="python">
......@@ -9,7 +9,8 @@ Example of use in Python for create a simple histogram workspace, automatically
dataY = [1,2,3,4,5,6,7,8,9,10,11,12]
dataE = [1,2,3,4,5,6,7,8,9,10,11,12]
CreateWorkspace('CreateWorkspace', dataX, dataY, dataE, NSpec=4,UnitX="Wavelength")
# The workspace will be named "dataWS"
dataWS = CreateWorkspace(DataX=dataX, DataY=dataY, DataE=dataE, NSpec=4,UnitX="Wavelength")
</source></div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment