Commit d9e47107 authored by Whitfield, Ross's avatar Whitfield, Ross
Browse files

Update IPTS-15526-Benzil/.#Benzil_MDNorm2_300K.py...

Update IPTS-15526-Benzil/.#Benzil_MDNorm2_300K.py IPTS-15526-Benzil/Benzil_MDNorm2_100K.py IPTS-15526-Benzil/Benzil_MDNorm2_300K.py
parent 3bc72caa
rwp@ndav4.sns.gov.34836:1624812233
\ No newline at end of file
......@@ -137,4 +137,4 @@ ax4.text(0.85, 0.9, '(d)', transform=ax4.transAxes, size=15, color='white')
plt.subplots_adjust(wspace=0, hspace=0)
fig.savefig('Benzil_100K.png', dpi=300)
fig.savefig('Benzil_100K.eps')
......@@ -17,14 +17,14 @@ SingleCrystalDiffuseReduction(Filename=filename,
Dimension1Binning='-13.165625,0.04366708333,13.165625',
Dimension2Binning='-0.5,0.5')
SaveMD(mtd['output1'], f'Benzil_100K_{filename}.nxs')
SaveMD(mtd['output1'], f'Benzil_300K_{filename}.nxs')
fig, ax = plt.subplots(subplot_kw={'projection':'mantid'})
c = ax.pcolormesh(mtd['output1'], vmin=2e-6, vmax=1e-5)
fig.colorbar(c)
fig.savefig(f'Benzil_100K_{filename}.png', dpi=300)
fig.savefig(f'Benzil_300K_{filename}.png', dpi=300)
filename = 'CORELLI_29715:29750'
filename = 'CORELLI_29782:29817'
SingleCrystalDiffuseReduction(Filename=filename,
SolidAngle='/SNS/CORELLI/shared/Vanadium/2016/2016B/SolidAngle20160720NoCC.nxs',
Flux='/SNS/CORELLI/shared/Vanadium/2016/2016B/Spectrum20160720NoCC.nxs',
......@@ -39,12 +39,12 @@ SingleCrystalDiffuseReduction(Filename=filename,
Dimension1Binning='-13.165625,0.04366708333,13.165625',
Dimension2Binning='-0.5,0.5')
SaveMD(mtd['output'], f'Benzil_100K_{filename}.nxs')
SaveMD(mtd['output'], f'Benzil_300K_{filename}.nxs')
fig, ax = plt.subplots(subplot_kw={'projection':'mantid'})
c = ax.pcolormesh(mtd['output'], vmin=2e-6, vmax=1e-5)
fig.colorbar(c)
fig.savefig(f'Benzil_100K_{filename}.png', dpi=300)
fig.savefig(f'Benzil_300K_{filename}.png', dpi=300)
filename = 'CORELLI_29782'
SingleCrystalDiffuseReduction(Filename=filename,
......@@ -62,14 +62,14 @@ SingleCrystalDiffuseReduction(Filename=filename,
Dimension2Binning='-0.5,0.5',
SymmetryOperations="P 31 2 1")
SaveMD(mtd['output1'], f'Benzil_100K_{filename}_sym.nxs')
SaveMD(mtd['output1'], f'Benzil_300K_{filename}_sym.nxs')
fig, ax = plt.subplots(subplot_kw={'projection':'mantid'})
c = ax.pcolormesh(mtd['output1'], vmin=2e-6, vmax=1e-5)
fig.colorbar(c)
fig.savefig(f'Benzil_100K_{filename}_sym.png', dpi=300)
fig.savefig(f'Benzil_300K_{filename}_sym.png', dpi=300)
filename = 'CORELLI_29715:29750'
filename = 'CORELLI_29782:29817'
SingleCrystalDiffuseReduction(Filename=filename,
SolidAngle='/SNS/CORELLI/shared/Vanadium/2016/2016B/SolidAngle20160720NoCC.nxs',
Flux='/SNS/CORELLI/shared/Vanadium/2016/2016B/Spectrum20160720NoCC.nxs',
......@@ -85,24 +85,24 @@ SingleCrystalDiffuseReduction(Filename=filename,
Dimension2Binning='-0.5,0.5',
SymmetryOperations="P 31 2 1")
SaveMD(mtd['output'], f'Benzil_100K_{filename}_sym.nxs')
SaveMD(mtd['output'], f'Benzil_300K_{filename}_sym.nxs')
fig, ax = plt.subplots(subplot_kw={'projection':'mantid'})
c = ax.pcolormesh(mtd['output'], vmin=2e-6, vmax=1e-5)
fig.colorbar(c)
fig.savefig(f'Benzil_100K_{filename}_sym.png', dpi=300)
fig.savefig(f'Benzil_300K_{filename}_sym.png', dpi=300)
from mantid import plots
import matplotlib.pyplot as plt
from mantid.simpleapi import *
filename = 'CORELLI_29715'
output1=LoadMD(f'Benzil_100K_{filename}.nxs')
output2=LoadMD(f'Benzil_100K_{filename}_sym.nxs')
filename = 'CORELLI_29782'
output1=LoadMD(f'Benzil_300K_{filename}.nxs')
output2=LoadMD(f'Benzil_300K_{filename}_sym.nxs')
filename = 'CORELLI_29715:29750'
output3=LoadMD(f'Benzil_100K_{filename}.nxs')
output4=LoadMD(f'Benzil_100K_{filename}_sym.nxs')
filename = 'CORELLI_29782:29817'
output3=LoadMD(f'Benzil_300K_{filename}.nxs')
output4=LoadMD(f'Benzil_300K_{filename}_sym.nxs')
fig = plt.figure(figsize = (6,6))
ax1 = fig.add_subplot(221, projection = 'mantid')
......@@ -115,10 +115,13 @@ plt.setp(ax2.get_xticklabels(), visible=False)
plt.setp(ax2.get_yticklabels(), visible=False)
plt.setp(ax4.get_yticklabels(), visible=False)
ax1.pcolormesh(mtd['output1'], vmin=2e-6, vmax=1e-5)
ax2.pcolormesh(mtd['output2'], vmin=2e-6, vmax=1e-5)
ax3.pcolormesh(mtd['output3'], vmin=2e-6, vmax=1e-5)
ax4.pcolormesh(mtd['output4'], vmin=2e-6, vmax=1e-5)
vmin=2e-6
vmax=8e-6
ax1.pcolormesh(mtd['output1'], vmin=vmin, vmax=vmax)
ax2.pcolormesh(mtd['output2'], vmin=vmin, vmax=vmax)
ax3.pcolormesh(mtd['output3'], vmin=vmin, vmax=vmax)
ax4.pcolormesh(mtd['output4'], vmin=vmin, vmax=vmax)
ax1.set_xlabel('')
ax1.set_ylabel('[H,-H,0]')
......@@ -136,5 +139,6 @@ ax4.text(0.85, 0.9, '(d)', transform=ax4.transAxes, size=15, color='white')
plt.subplots_adjust(wspace=0, hspace=0)
fig.savefig('Benzil_100K.png', dpi=300)
fig.savefig('Benzil_300K.png', dpi=300)
fig.savefig('Benzil_300K.eps')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment