\(\renewcommand\AA{\unicode{x212B}}\)
Other Plot Types
General Plot Help
3D Plots Surface and Wireframe - Table of contents
Basic example of plotting a Surface:
from mantid.simpleapi import *
import matplotlib.pyplot as plt
data = Load('MUSR00015189.nxs')
data = mtd['data_1'] # Extract individual workspace from group
fig, ax = plt.subplots(subplot_kw={'projection':'mantid3d'})
ax.plot_surface(data)
plt.show()
(Source code, png, hires.png, pdf)
For more advice: Formatting Plots with a script
Basic example of plotting a Wireframe:
from mantid.simpleapi import *
import matplotlib.pyplot as plt
data = Load('MAR11060.nxs')
fig, ax = plt.subplots(subplot_kw={'projection':'mantid3d'})
ax.plot_wireframe(data, color='#1f77b4')
plt.show()
(Source code, png, hires.png, pdf)
For more advice: Formatting Plots with a script
General Plot Help
Other Plotting Documentation