cphyc / matplotlib-label-lines

Label line using matplotlib.
MIT License
301 stars 28 forks source link

Catch nans #14

Closed cphyc closed 5 years ago

cphyc commented 5 years ago

Addresses #13.

Instead of silently failing, the code now shows a warning when the y values are not numbers. For now, it is the user's responsibility to provide good xvals values.

codecov-io commented 5 years ago

Codecov Report

Merging #14 into master will decrease coverage by 1.38%. The diff coverage is 62.5%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #14      +/-   ##
==========================================
- Coverage    96.9%   95.52%   -1.39%     
==========================================
  Files           4        4              
  Lines         194      201       +7     
==========================================
+ Hits          188      192       +4     
- Misses          6        9       +3
Impacted Files Coverage Δ
labellines/core.py 95.89% <62.5%> (-4.11%) :arrow_down:

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 074957c...5cab351. Read the comment docs.