Data visualization Doc

Examples in the Data visualization chapter


In [1]:
%matplotlib qt4
import numpy as np
import hyperspy.api as hs
import matplotlib.pyplot as plt

Customizing the “navigator”


In [2]:
from urllib.request import urlretrieve
url = 'http://cook.msm.cam.ac.uk//~hyperspy//EDS_tutorial//'
urlretrieve(url + 'TiFeNi_010.rpl', 'Ni_superalloy_010.rpl')
urlretrieve(url + 'TiFeNi_010.raw', 'TiFeNi_010.raw')
urlretrieve(url + 'TiFeNi_011.rpl', 'TiFeNi_011.rpl')
urlretrieve(url + 'TiFeNi_011.raw', 'TiFeNi_011.raw')
urlretrieve(url + 'image010.tif', 'image010.tif')
urlretrieve(url + 'image011.tif', 'image011.tif')


Out[2]:
('image011.tif', <http.client.HTTPMessage at 0x7f5295ae1198>)

In [3]:
img = hs.load('image*.tif', stack=True)
img.plot(navigator="slider")


Loading individual files

Individual files loaded correctly

	Title: doc_docstr_examples
	Signal type: 
	Data dimensions: (2, 1024, 768)
	Data representation: image
	Data type: uint8
/home/to266/dev/hyperspy/hyperspy/signals.py:83: VisibleDeprecationWarning: The Signal2D class will be deprecated from version 1.0.0 and replaced with Signal2D
  VisibleDeprecationWarning)

In [4]:
s = hs.load('TiFeNi_0*.rpl', stack=True).as_signal1D(0)
s.plot()


Loading as Signal2D

Individual files loaded correctly

	Title: doc_docstr_examples
	Signal type: 
	Data dimensions: (1024, 1, 128, 96)
	Data representation: image
	Data type: int16
/home/to266/dev/hyperspy/hyperspy/signals.py:83: VisibleDeprecationWarning: The Signal2D class will be deprecated from version 1.0.0 and replaced with Signal2D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signal.py:3413: VisibleDeprecationWarning: The as_signal1D method will be deprecated from version 1.0.0 and replaced with as_signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:54: VisibleDeprecationWarning: The Signal1D class will be deprecated from version 1.0.0 and replaced with Signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:126: VisibleDeprecationWarning: The Signal class will be deprecated from version 1.0.0 and replaced with BaseSignal
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signal.py:3498: VisibleDeprecationWarning: The as_signal2D method will be deprecated from version 1.0.0 and replaced with as_signal2D
  VisibleDeprecationWarning)

In [5]:
im = hs.load('image*.tif', stack=True)
s = hs.load('TiFeNi_0*.rpl', stack=True).as_signal1D(0)
dim = s.axes_manager.navigation_shape
#Rebin the image
im = im.rebin([dim[2], dim[0], dim[1]])
s.plot(navigator=im)


Loading individual files

Individual files loaded correctly

	Title: doc_docstr_examples
	Signal type: 
	Data dimensions: (2, 1024, 768)
	Data representation: image
	Data type: uint8
Loading as Signal2D

Individual files loaded correctly

	Title: doc_docstr_examples
	Signal type: 
	Data dimensions: (1024, 1, 128, 96)
	Data representation: image
	Data type: int16
/home/to266/dev/hyperspy/hyperspy/signals.py:83: VisibleDeprecationWarning: The Signal2D class will be deprecated from version 1.0.0 and replaced with Signal2D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signal.py:3413: VisibleDeprecationWarning: The as_signal1D method will be deprecated from version 1.0.0 and replaced with as_signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:54: VisibleDeprecationWarning: The Signal1D class will be deprecated from version 1.0.0 and replaced with Signal1D
  VisibleDeprecationWarning)

In [6]:
imgSpec = hs.load('TiFeNi_0*.rpl', stack=True)
imgSpec.plot(navigator='spectrum')


Loading as Signal2D

Individual files loaded correctly

	Title: doc_docstr_examples
	Signal type: 
	Data dimensions: (1024, 1, 128, 96)
	Data representation: image
	Data type: int16
/home/to266/dev/hyperspy/hyperspy/signals.py:83: VisibleDeprecationWarning: The Signal2D class will be deprecated from version 1.0.0 and replaced with Signal2D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:54: VisibleDeprecationWarning: The Signal1D class will be deprecated from version 1.0.0 and replaced with Signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:126: VisibleDeprecationWarning: The Signal class will be deprecated from version 1.0.0 and replaced with BaseSignal
  VisibleDeprecationWarning)

In [7]:
imgSpec = hs.load('TiFeNi_0*.rpl', stack=True)
specMax = imgSpec.max(-1).max(-1).max(-1).as_signal1D(0)
imgSpec.plot(navigator=specMax)


Loading as Signal2D

Individual files loaded correctly

	Title: doc_docstr_examples
	Signal type: 
	Data dimensions: (1024, 1, 128, 96)
	Data representation: image
	Data type: int16
/home/to266/dev/hyperspy/hyperspy/signals.py:83: VisibleDeprecationWarning: The Signal2D class will be deprecated from version 1.0.0 and replaced with Signal2D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:54: VisibleDeprecationWarning: The Signal1D class will be deprecated from version 1.0.0 and replaced with Signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:126: VisibleDeprecationWarning: The Signal class will be deprecated from version 1.0.0 and replaced with BaseSignal
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signal.py:3413: VisibleDeprecationWarning: The as_signal1D method will be deprecated from version 1.0.0 and replaced with as_signal1D
  VisibleDeprecationWarning)

Using Mayavi to visualize 3D data (only python 2)


In [9]:
from urllib.request import urlretrieve
url = 'http://cook.msm.cam.ac.uk//~hyperspy//EDS_tutorial//'
urlretrieve(url + 'Ni_La_intensity.hdf5', 'Ni_La_intensity.hdf5')


Out[9]:
('Ni_La_intensity.hdf5', <http.client.HTTPMessage at 0x7f3d4ca92c50>)

In [ ]:
from mayavi import mlab
ni = hs.load('Ni_La_intensity.hdf5')
mlab.figure()
mlab.contour3d(ni.data, contours=[85])
mlab.outline(color=(0, 0, 0))

plot_spectra


In [8]:
import scipy.misc
s = hs.signals.Signal1D(scipy.misc.ascent()[100:160:10])
cascade_plot = hs.plot.plot_spectra(s, style='cascade')
cascade_plot.figure.savefig("cascade_plot.png")


/home/to266/anaconda3/lib/python3.5/site-packages/matplotlib/__init__.py:892: UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter.
  warnings.warn(self.msg_depr % (key, alt_key))
/home/to266/dev/hyperspy/hyperspy/signal.py:1331: VisibleDeprecationWarning: Indexing the `Signal` class is deprecated and will be removed in Hyperspy 1.0. Please use `.isig` and/or `.inav` instead.
  VisibleDeprecationWarning)

In [9]:
import scipy.misc
s = hs.signals.Signal1D(scipy.misc.ascent()[100:160:10])
color_list = ['red', 'red', 'blue', 'blue', 'red', 'red']
line_style_list = ['-','--','steps','-.',':','-']
hs.plot.plot_spectra(s, style='cascade', color=color_list,
line_style=line_style_list,legend='auto')


/home/to266/dev/hyperspy/hyperspy/signal.py:1331: VisibleDeprecationWarning: Indexing the `Signal` class is deprecated and will be removed in Hyperspy 1.0. Please use `.isig` and/or `.inav` instead.
  VisibleDeprecationWarning)
Out[9]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f5291e94668>

In [10]:
import scipy.misc
s = hs.signals.Signal1D(scipy.misc.ascent()[100:160:10])
hs.plot.plot_spectra(s, style='heatmap')


/home/to266/anaconda3/lib/python3.5/site-packages/matplotlib/__init__.py:892: UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter.
  warnings.warn(self.msg_depr % (key, alt_key))
Out[10]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f5291e99ef0>

In [12]:
import scipy.misc
s = hs.signals.Signal1D(scipy.misc.ascent()[100:120:10])
hs.plot.plot_spectra(s, style='mosaic')


/home/to266/anaconda3/lib/python3.5/site-packages/matplotlib/__init__.py:892: UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter.
  warnings.warn(self.msg_depr % (key, alt_key))
Out[12]:
array([<matplotlib.axes._subplots.AxesSubplot object at 0x7f5291312a90>,
       <matplotlib.axes._subplots.AxesSubplot object at 0x7f52912e3198>], dtype=object)

In [13]:
import matplotlib.cm
import scipy.misc
s = hs.signals.Signal1D(scipy.misc.ascent()[100:120:10])
ax = hs.plot.plot_spectra(s, style="heatmap")
ax.images[0].set_cmap(matplotlib.cm.jet)


/home/to266/anaconda3/lib/python3.5/site-packages/matplotlib/__init__.py:892: UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter.
  warnings.warn(self.msg_depr % (key, alt_key))

In [14]:
import scipy.misc
s = hs.signals.Signal1D(scipy.misc.ascent()[100:160:10])
legendtext = ['Plot 0', 'Plot 1', 'Plot 2', 'Plot 3', 'Plot 4', 'Plot 5']
cascade_plot = hs.plot.plot_spectra(
s, style='cascade', legend=legendtext, dpi=60,
facecolor='lightblue', frameon=True, num=5)
cascade_plot.set_xlabel("X-axis")
cascade_plot.set_ylabel("Y-axis")
cascade_plot.set_title("Cascade plot")
plt.draw()


/home/to266/anaconda3/lib/python3.5/site-packages/matplotlib/__init__.py:892: UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter.
  warnings.warn(self.msg_depr % (key, alt_key))
/home/to266/dev/hyperspy/hyperspy/signal.py:1331: VisibleDeprecationWarning: Indexing the `Signal` class is deprecated and will be removed in Hyperspy 1.0. Please use `.isig` and/or `.inav` instead.
  VisibleDeprecationWarning)

In [16]:
import scipy.misc
s = hs.signals.Signal1D(scipy.misc.ascent()[100:160:10])
cascade_plot = hs.plot.plot_spectra(s)
cascade_plot.set_xlabel("An axis")
cascade_plot.set_ylabel("Another axis")
cascade_plot.set_title("A title!")
plt.draw()


/home/to266/anaconda3/lib/python3.5/site-packages/matplotlib/__init__.py:892: UserWarning: axes.color_cycle is deprecated and replaced with axes.prop_cycle; please use the latter.
  warnings.warn(self.msg_depr % (key, alt_key))
/home/to266/dev/hyperspy/hyperspy/signal.py:1331: VisibleDeprecationWarning: Indexing the `Signal` class is deprecated and will be removed in Hyperspy 1.0. Please use `.isig` and/or `.inav` instead.
  VisibleDeprecationWarning)

In [17]:
import scipy.misc
fig, axarr = plt.subplots(1,2)
s1 = hs.signals.Signal1D(scipy.misc.ascent()[100:160:10])
s2 = hs.signals.Signal1D(scipy.misc.ascent()[200:260:10])
hs.plot.plot_spectra(s1, style='cascade',color='blue',ax=axarr[0],fig=fig)
hs.plot.plot_spectra(s2, style='cascade',color='red',ax=axarr[1],fig=fig)
fig.canvas.draw()


/home/to266/dev/hyperspy/hyperspy/signal.py:1331: VisibleDeprecationWarning: Indexing the `Signal` class is deprecated and will be removed in Hyperspy 1.0. Please use `.isig` and/or `.inav` instead.
  VisibleDeprecationWarning)

Plot_signals


In [18]:
import scipy.misc
s1 = hs.signals.Signal1D(scipy.misc.face()).as_signal1D(0)[:,:3]
s2 = s1.deepcopy()*-1
hs.plot.plot_signals([s1, s2])


/home/to266/dev/hyperspy/hyperspy/signal.py:3413: VisibleDeprecationWarning: The as_signal1D method will be deprecated from version 1.0.0 and replaced with as_signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:54: VisibleDeprecationWarning: The Signal1D class will be deprecated from version 1.0.0 and replaced with Signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signal.py:1331: VisibleDeprecationWarning: Indexing the `Signal` class is deprecated and will be removed in Hyperspy 1.0. Please use `.isig` and/or `.inav` instead.
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:126: VisibleDeprecationWarning: The Signal class will be deprecated from version 1.0.0 and replaced with BaseSignal
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signal.py:3498: VisibleDeprecationWarning: The as_signal2D method will be deprecated from version 1.0.0 and replaced with as_signal2D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:83: VisibleDeprecationWarning: The Signal2D class will be deprecated from version 1.0.0 and replaced with Signal2D
  VisibleDeprecationWarning)

In [19]:
import scipy.misc
s1 = hs.signals.Signal1D(scipy.misc.face()).as_signal1D(0)[:,:3]
s2 = s1.deepcopy()*-1
hs.plot.plot_signals([s1, s2], navigator="slider")


/home/to266/dev/hyperspy/hyperspy/signal.py:3413: VisibleDeprecationWarning: The as_signal1D method will be deprecated from version 1.0.0 and replaced with as_signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:54: VisibleDeprecationWarning: The Signal1D class will be deprecated from version 1.0.0 and replaced with Signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signal.py:1331: VisibleDeprecationWarning: Indexing the `Signal` class is deprecated and will be removed in Hyperspy 1.0. Please use `.isig` and/or `.inav` instead.
  VisibleDeprecationWarning)

In [20]:
import scipy.misc
s1 = hs.signals.Signal1D(scipy.misc.face()).as_signal1D(0)[:,:3]
s2 = s1.deepcopy()*-1
s3 = hs.signals.Signal1D(np.linspace(0,9,9).reshape([3,3]))
hs.plot.plot_signals([s1, s2], navigator_list=["slider", s3])


/home/to266/dev/hyperspy/hyperspy/signal.py:3413: VisibleDeprecationWarning: The as_signal1D method will be deprecated from version 1.0.0 and replaced with as_signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:54: VisibleDeprecationWarning: The Signal1D class will be deprecated from version 1.0.0 and replaced with Signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signal.py:1331: VisibleDeprecationWarning: Indexing the `Signal` class is deprecated and will be removed in Hyperspy 1.0. Please use `.isig` and/or `.inav` instead.
  VisibleDeprecationWarning)

In [21]:
import scipy.misc
s1 = hs.signals.Signal1D(scipy.misc.face()).as_signal1D(0)[:,:3]
s2 = s1.deepcopy()*-1
hs.plot.plot_signals([s1, s2], sync=False, navigator_list=["slider", "slider"])


/home/to266/dev/hyperspy/hyperspy/signal.py:3413: VisibleDeprecationWarning: The as_signal1D method will be deprecated from version 1.0.0 and replaced with as_signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:54: VisibleDeprecationWarning: The Signal1D class will be deprecated from version 1.0.0 and replaced with Signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signal.py:1331: VisibleDeprecationWarning: Indexing the `Signal` class is deprecated and will be removed in Hyperspy 1.0. Please use `.isig` and/or `.inav` instead.
  VisibleDeprecationWarning)

In [22]:
s = hs.signals.Signal1D(np.arange(100).reshape([10,10]))
s.plot(navigator='spectrum')
for i in range(s.axes_manager.shape[0]):
    m = hs.plot.markers.text(y=s.sum(-1).data[i]+5,
                             x=i, text='abcdefghij'[i])
s.add_marker(m, plot_on_signal=False)
x = s.axes_manager.shape[-1]/2 #middle of signal plot
m = hs.plot.markers.text(x=x, y=s[:, x].data+2,text=[i for i in 'abcdefghij'])
s.add_marker(m)


/home/to266/dev/hyperspy/hyperspy/signals.py:126: VisibleDeprecationWarning: The Signal class will be deprecated from version 1.0.0 and replaced with BaseSignal
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signal.py:1331: VisibleDeprecationWarning: Indexing the `Signal` class is deprecated and will be removed in Hyperspy 1.0. Please use `.isig` and/or `.inav` instead.
  VisibleDeprecationWarning)

Plot_images


In [23]:
import scipy
image = hs.signals.Signal2D([scipy.misc.ascent()]*6)
angles = hs.signals.Signal(range(10,70,10))
angles.axes_manager.set_signal_dimension(0)
image.map(scipy.ndimage.rotate, angle=angles, reshape=False)
hs.plot.plot_images(image, tight_layout=True)


 calculating  83% |#####################################        | ETA:  00:00:00 
/home/to266/dev/hyperspy/hyperspy/signals.py:126: VisibleDeprecationWarning: The Signal class will be deprecated from version 1.0.0 and replaced with BaseSignal
  VisibleDeprecationWarning)
 calculating 100% |#############################################| ETA:  00:00:00 

/home/to266/dev/hyperspy/hyperspy/drawing/utils.py:835: UserWarning: Axes labels were requested, but one or both of the axes units and/or name are undefined. Axes decorations have been set to 'ticks' instead.
  'Axes labels were requested, but one '
Out[23]:
[<matplotlib.axes._subplots.AxesSubplot at 0x7f5291d212e8>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f5291b758d0>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f5291b19c18>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f529132c5f8>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f5291b095c0>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f5291e0f2b0>]

In [24]:
import scipy
image = hs.signals.Signal2D([scipy.misc.ascent()]*6)
angles = hs.signals.Signal(range(10,70,10))
angles.axes_manager.set_signal_dimension(0)
image.map(scipy.ndimage.rotate, angle=angles, reshape=False)
hs.plot.plot_images(
image, suptitle='Turning Lena', axes_decor='off',
label=['Rotation ' + str(angle.data[0]) +
'$^\degree$' for angle in angles], colorbar=None)


 calculating  83% |#####################################        | ETA:  00:00:00 
/home/to266/dev/hyperspy/hyperspy/signals.py:126: VisibleDeprecationWarning: The Signal class will be deprecated from version 1.0.0 and replaced with BaseSignal
  VisibleDeprecationWarning)
 calculating 100% |#############################################| ETA:  00:00:00 

Out[24]:
[<matplotlib.axes._subplots.AxesSubplot at 0x7f529048ac50>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f5290495828>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f5290464240>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f5290121b70>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f52900f4208>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f52900c02e8>]

In [25]:
import scipy


# load red channel of raccoon as an image
image0 = hs.signals.Signal2D(scipy.misc.face()[:,:,0])
image0.metadata.General.title = 'Rocky Raccoon - R'


# load lena into 6 hyperimage
image1 = hs.signals.Signal2D([scipy.misc.ascent()]*6)
angles = hs.signals.Signal(range(10,70,10))
angles.axes_manager.set_signal_dimension(0)
image1.map(scipy.ndimage.rotate, angle=angles, reshape=False)


# load green channel of raccoon as an image
image2 = hs.signals.Signal2D(scipy.misc.face()[:,:,1])
image2.metadata.General.title = 'Rocky Raccoon - G'


# load rgb image of the raccoon
rgb = hs.signals.Signal1D(scipy.misc.face())
rgb.change_dtype("rgb8")
rgb.metadata.General.title = 'Raccoon - RGB'
    

images = [image0, image1, image2, rgb]
for im in images:
    ax = im.axes_manager.signal_axes
    ax[0].name, ax[1].name = 'x', 'y'
    ax[0].units, ax[1].units = 'mm', 'mm'
hs.plot.plot_images(images, tight_layout=True,
colorbar='single', labelwrap=20)


 calculating  83% |#####################################        | ETA:  00:00:00 
/home/to266/dev/hyperspy/hyperspy/signals.py:126: VisibleDeprecationWarning: The Signal class will be deprecated from version 1.0.0 and replaced with BaseSignal
  VisibleDeprecationWarning)
 calculating 100% |#############################################| ETA:  00:00:00 

/home/to266/dev/hyperspy/hyperspy/signals.py:83: VisibleDeprecationWarning: The Signal2D class will be deprecated from version 1.0.0 and replaced with Signal2D
  VisibleDeprecationWarning)
/home/to266/anaconda3/lib/python3.5/site-packages/matplotlib/figure.py:1744: UserWarning: This figure includes Axes that are not compatible with tight_layout, so its results might be incorrect.
  warnings.warn("This figure includes Axes that are not "
Out[25]:
[<matplotlib.axes._subplots.AxesSubplot at 0x7f528ffbd470>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f528fd6fef0>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f528fd741d0>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f528fd36a58>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f528fd0e780>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f5291c57940>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f52900c0128>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f5290e73588>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f5291266a20>]

In [26]:
from urllib.request import urlretrieve
url = 'http://cook.msm.cam.ac.uk//~hyperspy//EDS_tutorial//'
urlretrieve(url + 'core_shell.hdf5', 'core_shell.hdf5')


Out[26]:
('core_shell.hdf5', <http.client.HTTPMessage at 0x7f528fcbfef0>)

In [27]:
si_EDS = hs.load("core_shell.hdf5")
im = si_EDS.get_lines_intensity()
hs.plot.plot_images(
im, tight_layout=True, cmap='RdYlBu_r', axes_decor='off',
colorbar='single', saturated_pixels=0.0, scalebar='all',
scalebar_color='black', suptitle_fontsize=16,
padding={'top':0.8, 'bottom':0.10, 'left':0.05,
'right':0.85, 'wspace':0.20, 'hspace':0.10})


/home/to266/dev/hyperspy/hyperspy/signals.py:54: VisibleDeprecationWarning: The Signal1D class will be deprecated from version 1.0.0 and replaced with Signal1D
  VisibleDeprecationWarning)
/home/to266/dev/hyperspy/hyperspy/signals.py:126: VisibleDeprecationWarning: The Signal class will be deprecated from version 1.0.0 and replaced with BaseSignal
  VisibleDeprecationWarning)
/home/to266/anaconda3/lib/python3.5/site-packages/matplotlib/figure.py:1744: UserWarning: This figure includes Axes that are not compatible with tight_layout, so its results might be incorrect.
  warnings.warn("This figure includes Axes that are not "
Out[27]:
[<matplotlib.axes._subplots.AxesSubplot at 0x7f528fa3e470>,
 <matplotlib.axes._subplots.AxesSubplot at 0x7f528fa9ff60>]

CLEANUP


In [30]:
%%bash

rm core_shell.hdf5 Ni_La_intensity.hdf5 cascade_plot.png

rm Ni_superalloy_010.rpl TiFeNi_010.raw TiFeNi_011.rpl TiFeNi_011.raw image010.tif image011.tif