Skip to content

Commit

Permalink
Merge pull request #1054 from siriagus/BUGFIX_plot_images_scalebar_ci…
Browse files Browse the repository at this point in the history
…rcular_import_dependency

Fixed circular import dependecy of hyperspy.drawing.widgets
  • Loading branch information
to266 committed Jun 3, 2016
2 parents 8c436af + c3f18a0 commit 76a8cfb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions hyperspy/drawing/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
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 @@ -823,7 +822,7 @@ def plot_images(images,

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

0 comments on commit 76a8cfb

Please sign in to comment.