Commit d0f98944 authored by Leo Pound Singer's avatar Leo Pound Singer

Pass kwargs from scalebar().label()

parent 77477145
......@@ -593,9 +593,9 @@ class ScaleBar(FancyArrowPatch):
transform=ax.transAxes,
**kwargs)
def label(self):
def label(self, **kwargs):
(x0, y), (x1, _) = self._posA_posB
s = u' {0.value:g}{0.unit:unicode}'.format(self._length)
return self._ax.text(
0.5 * (x0 + x1), y, s,
ha='center', va='bottom', transform=self._ax.transAxes)
ha='center', va='bottom', transform=self._ax.transAxes, **kwargs)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment