-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refs #3867: sliceviewer and lineviewer documentation
- Loading branch information
Janik Zikovsky
committed
Jan 5, 2012
1 parent
566e0ba
commit bb84ee6
Showing
10 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+6.08 KB
Code/Mantid/MantidQt/SliceViewer/doc/LineViewer_Binning_FixedWidth.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.48 KB
Code/Mantid/MantidQt/SliceViewer/doc/SliceViewer_DimensionWidgets.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions
30
Code/Mantid/MantidQt/SliceViewer/doc/sliceviewer_wiki_screenshots.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
""" Generate screenshots for the wiki docs | ||
""" | ||
|
||
# Basic parameters | ||
filename = "TOPAZ_3131_event.nxs" | ||
ws = "TOPAZ" | ||
LoadEventNexus(Filename=filename,OutputWorkspace=ws+"_nxs") | ||
ConvertToDiffractionMDWorkspace(InputWorkspace=ws+"_nxs",OutputWorkspace=ws, LorentzCorrection='1', SplitInto='2',SplitThreshold='150') | ||
FindPeaksMD(InputWorkspace=ws,MaxPeaks='500',OutputWorkspace=ws+'_peaks') | ||
FindUBUsingLatticeParameters(PeaksWorkspace=ws+'_peaks',a='10.3522',b='6.0768',c='4.7276', alpha='90',beta='90',gamma='90', NumInitial='20', Tolerance='0.12') | ||
IndexPeaks(PeaksWorkspace=ws+'_peaks', Tolerance='0.12') | ||
CopySample(InputWorkspace=ws+'_peaks',OutputWorkspace=ws+"_nxs", CopyName='0',CopyMaterial='0',CopyEnvironment='0',CopyShape='0') | ||
ConvertToDiffractionMDWorkspace(InputWorkspace=ws+"_nxs", OutputWorkspace='HKL', OutputDimensions='HKL',LorentzCorrection='1', SplitInto='2',SplitThreshold='150') | ||
|
||
#================ Start the Screenshots ========================== | ||
import numpy | ||
from PyQt4 import Qt | ||
|
||
svw = plotSlice("hkl", slicepoint=[0,0, -19], colorscalelog=True, limits=[-6.5,-3.5, -2.5,0.5]) | ||
|
||
n = 0 | ||
for L in numpy.arange(-5.1, -4.9, 0.01): | ||
svw.setSlicePoint(2, L) | ||
pix = Qt.QPixmap.grabWidget(svw._getHeldObject()) | ||
pix.save("/home/8oz/Code/Mantid/Code/Mantid/MantidQt/SliceViewer/doc/anim%02d.png" % n) | ||
n = n + 1 | ||
|
||
import os | ||
# This requires imagemagick. Converts to a nifty animated gif. | ||
os.system("convert /home/8oz/Code/Mantid/Code/Mantid/MantidQt/SliceViewer/doc/anim*png /home/8oz/Code/Mantid/Code/Mantid/MantidQt/SliceViewer/doc/SliceViewer_SlicePoint_Animation.gif") |