3D Plots: Surface and Wireframe¶
Other Plot Types
General Plot Help
Surface Plots¶
Plot Toolbar¶
![Plot Toolbar Surface Plots](../_images/PlotToolbar3DSurface.png)
Scripting¶
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, cmap='viridis')
fig.show()
(Source code
, png
, hires.png
, pdf
)
![../_images/3DPlotsHelp-1.png](../_images/3DPlotsHelp-1.png)
For more advice: Formatting Plots with a script
Wireframe Plots¶
Plot Toolbar¶
![Plot Toolbar 3D Wireframe](../_images/PlotToolbar3DWireframe.png)
Change the Color of the Wireframe:
![Color Palette Wireframe and Contour](../_images/ColorPaletteWireframeContour.png)
Click Menus¶
![Click Menus 3D Wireframe](../_images/PlotClickMenus3DWireframe.png)
ptions Menu¶
![Plot Options 3D Wireframe](../_images/PlotOptions3DWireframe.png)
Scripting¶
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')
fig.show()
(Source code
, png
, hires.png
, pdf
)
![../_images/3DPlotsHelp-2.png](../_images/3DPlotsHelp-2.png)
For more advice: Formatting Plots with a script
General¶
General Plot Help
Plots Toolbox¶
![Plot Toolbox](../_images/PlotsWindow.png)
File > Settings¶
![Plot Settings](../_images/PlotSettings.png)
Other Plotting Documentation
See here for custom color cycles and colormaps