hyperspy.drawing._widgets.scalebar module

class hyperspy.drawing._widgets.scalebar.ScaleBar(ax, units, pixel_size=None, color='white', position=None, max_size_ratio=0.25, lw=2, length=None, animated=False)

Bases: object

calculate_line_position(pad=0.05)
calculate_size(max_size_ratio=0.25)
calculate_text_position(pad=0.01)
get_units_string()
plot_scale(line_width=1)
remove()
set_color(c)
set_length(length)
set_tex_bold()