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 blit support and fix documentation #22

Merged
merged 5 commits into from
Jul 12, 2019

Conversation

ericpre
Copy link
Contributor

@ericpre ericpre commented Jun 11, 2019

I am looking at using matplotlib-scalebar in hyperspy as a replacement of the current implementation of the scalebar and a few tweaks are needed to make it work.

Using this scalebar is much simpler and nicer than the current implementation of the scalebar in hyperspy. It also fixed a few bugs.

@codecov-io
Copy link

codecov-io commented Jun 11, 2019

Codecov Report

Merging #22 into master will increase coverage by 0.07%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
+ Coverage   52.07%   52.15%   +0.07%     
==========================================
  Files           4        4              
  Lines         603      604       +1     
==========================================
+ Hits          314      315       +1     
  Misses        289      289
Impacted Files Coverage Δ
matplotlib_scalebar/scalebar.py 91.66% <100%> (+0.03%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ba8ca4d...3ad3e01. Read the comment docs.

* ``SI_LENGTH_RECIPROCAL``: scale bar showing 1/m, 1/cm, etc.
* ``PIXEL_LENGTH``: scale bar showing px, kpx, Mpx, etc.
* a ``matplotlib_scalebar.dimension._Dimension`` object
* ``si-length``: scale bar showing km, m, cm, etc.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree this was confusing. SI_LENGTH actually refers to a module variable, which could have been imported along the ScaleBar class, but you are write I am sure most people uses the string.

matplotlib_scalebar/scalebar.py Outdated Show resolved Hide resolved
matplotlib_scalebar/scalebar.py Outdated Show resolved Hide resolved
@ericpre
Copy link
Contributor Author

ericpre commented Jul 7, 2019

Thanks for the review, your comments should have been addressed.

@ppinard ppinard merged commit 2b24099 into ppinard:master Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants