fix bug in scalebars: right now,
F.scalebar.set_linewidth(5)
F.scalebar.set_length(100)
would result in an error