comparison dmri.py @ 12:1467f96db74a draft

Uploaded
author greg
date Fri, 03 Nov 2017 13:55:26 -0400
parents 173c5c07b2f9
children 2b914b6a0c83
comparison
equal deleted inserted replaced
11:173c5c07b2f9 12:1467f96db74a
30 pyplot.figure('Showing the datasets') 30 pyplot.figure('Showing the datasets')
31 pyplot.subplot(1, 2, 1).set_axis_off() 31 pyplot.subplot(1, 2, 1).set_axis_off()
32 pyplot.imshow(data[:, :, axial_middle, 0].T, cmap='gray', origin='lower') 32 pyplot.imshow(data[:, :, axial_middle, 0].T, cmap='gray', origin='lower')
33 pyplot.subplot(1, 2, 2).set_axis_off() 33 pyplot.subplot(1, 2, 2).set_axis_off()
34 pyplot.imshow(data[:, :, axial_middle, 10].T, cmap='gray', origin='lower') 34 pyplot.imshow(data[:, :, axial_middle, 10].T, cmap='gray', origin='lower')
35 pyplot.show() 35 pyplot.savefig('data.png', bbox_inches='tight')
36 pyplot.savefig(args.output, bbox_inches='tight') 36 shutil.move('data.png', args.output)