netneurolab / netneurotools

Useful tools from the Network Neuroscience Lab
https://netneurolab.github.io/netneurotools
BSD 3-Clause "New" or "Revised" License
61 stars 32 forks source link

[ENH] Adds lab-useful colormaps #85

Closed rmarkello closed 2 years ago

rmarkello commented 4 years ago

Adds nntools.colors module! Loading the module will instantly register all the colormaps with matplotlib so they can be called just like any other colormap (or passed directly).

I'm only including a few to start: parula for those matlab lovers and turbo for the one person in the lab who insists on using jet (*cough @VinceBaz cough*).

Need to get RGB values from @estefanysuarez for the estefany, still!

codecov-commenter commented 4 years ago

Codecov Report

Merging #85 (758113c) into master (dd42915) will increase coverage by 3.42%. The diff coverage is 92.30%.

@@            Coverage Diff             @@
##           master      #85      +/-   ##
==========================================
+ Coverage   63.54%   66.96%   +3.42%     
==========================================
  Files          22       27       +5     
  Lines        1536     1916     +380     
==========================================
+ Hits          976     1283     +307     
- Misses        560      633      +73     
Impacted Files Coverage Δ
netneurotools/colors.py 92.30% <92.30%> (ø)
netneurotools/metrics.py 35.84% <0.00%> (-53.04%) :arrow_down:
netneurotools/stats.py 64.31% <0.00%> (-16.34%) :arrow_down:
netneurotools/networks.py 9.17% <0.00%> (-0.18%) :arrow_down:
netneurotools/__init__.py 100.00% <0.00%> (ø)
netneurotools/modularity.py 59.55% <0.00%> (ø)
netneurotools/tests/test_stats.py 100.00% <0.00%> (ø)
netneurotools/tests/test_utils.py 100.00% <0.00%> (ø)
netneurotools/datasets/__init__.py 100.00% <0.00%> (ø)
netneurotools/tests/test_cluster.py 100.00% <0.00%> (ø)
... and 11 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

rmarkello commented 3 years ago

turbo is now included in matplotlib so we can remove it from here!