Skip to content

Add blit support and fix documentation#22

Merged
ppinard merged 5 commits intoppinard:masterfrom
ericpre:add_blit_support
Jul 12, 2019
Merged

Add blit support and fix documentation#22
ppinard merged 5 commits intoppinard:masterfrom
ericpre:add_blit_support

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.

@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