This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ipywidgets.widgets import HBox, VBox | |
import matplotlib.pyplot as plt | |
def plot(s, orientation='horizontal'): | |
""" | |
Plot hyperspy signals horizontally using the %matplotlib widget interface. | |
Can also plot vertically using orientation='vertical' | |
""" | |
# if 1D signal, just plot normal |