cphyc / matplotlib-label-lines

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

Move labels farther from the left and right edges of the plot #22

Closed MaxGhenis closed 4 years ago

MaxGhenis commented 4 years ago

Fixes #20, and makes shrink_factor an argument to labelLines() defaulting to 0.05; i.e., the leftmost and rightmost labels will each be placed 5% of the plot width in from the plot edges.

codecov-commenter commented 4 years ago

Codecov Report

Merging #22 into master will increase coverage by 0.05%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #22      +/-   ##
==========================================
+ Coverage   95.55%   95.61%   +0.05%     
==========================================
  Files           4        4              
  Lines         225      228       +3     
==========================================
+ Hits          215      218       +3     
  Misses         10       10              
Impacted Files Coverage Δ
labellines/core.py 95.12% <100.00%> (+0.18%) :arrow_up:

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 87779da...e4ac571. Read the comment docs.

cphyc commented 4 years ago

Thanks for the PR! This looks good to me ;)