ppinard / matplotlib-scalebar

Provides a new artist for matplotlib to display a scale bar, aka micron bar.
BSD 2-Clause "Simplified" License
146 stars 29 forks source link

bbox_to_anchor keyword #57

Open annehulsey opened 1 year ago

annehulsey commented 1 year ago

This package is exactly what I've been looking for years, for use with geopandas. Thanks you!

Would it be possible to add the bbox_to_anchor, in addition to location? The documentation looks like it works but I got the following error: TypeError: ScaleBar.init() got an unexpected keyword argument 'bbox_to_anchor'.

annehulsey commented 1 year ago

I found the relevant code via search link but when I add it in my local package, I still get the same error.

moss-xyz commented 6 months ago

For anyone else stuck on this: seems that pip package isn't updated yet, but if you want to use the bbox keywords, you can install directly from git using this code:

pip install git+https://github.com/ppinard/matplotlib-scalebar.git