Skip to content

Commit

Permalink
Merge pull request #1020 from dnjohnstone/BUGFIX_plot_images_scalebar
Browse files Browse the repository at this point in the history
BUGFIX - Scale bar plotting in current master
  • Loading branch information
francisco-dlp committed May 31, 2016
2 parents 967ce6a + 0037349 commit 8c436af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hyperspy/drawing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import matplotlib.pyplot as plt
import matplotlib as mpl
import hyperspy as hs
from hyperspy.drawing import widgets

from hyperspy.misc.image_tools import (contrast_stretching,
MPL_DIVERGING_COLORMAPS,
Expand Down Expand Up @@ -822,7 +823,7 @@ def plot_images(images,

# Add scalebars as necessary
if (scalelist and idx - 1 in scalebar) or scalebar is 'all':
ax.scalebar = Scale_Bar(
ax.scalebar = widgets.ScaleBar(
ax=ax,
units=axes[0].units,
color=scalebar_color,
Expand Down

0 comments on commit 8c436af

Please sign in to comment.