Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scale bar plot method. #44

Merged
merged 11 commits into from Dec 12, 2022
Merged

Add scale bar plot method. #44

merged 11 commits into from Dec 12, 2022

Conversation

juseg
Copy link
Owner

@juseg juseg commented Dec 5, 2022

I initially planned to rework the cartowik code but found a much better way using matplotlib's AnchoredOffsetbox (see this matplotlib example).

  • Add AnchoredScaleBar class.
  • Add scale_bar plot method and docstring.
  • Add smart default size relative to data extent.
  • Remove old cartowik code and subfig_labels.
  • Add scale bars in docs, selected example(s).
  • Add specific example using different styles.
  • Document changes in roadmap, whatsnew.

Close #16.

@juseg juseg added the enhancement New feature or request label Dec 5, 2022
@juseg juseg added this to the v0.2.2 milestone Dec 5, 2022
@juseg juseg self-assigned this Dec 5, 2022
@juseg juseg linked an issue Dec 5, 2022 that may be closed by this pull request
3 tasks
@juseg juseg marked this pull request as ready for review December 12, 2022 10:17
@juseg juseg merged commit 137b4bb into main Dec 12, 2022
@juseg juseg deleted the scale-bar branch December 12, 2022 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add scale bar decoration plot method
1 participant