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

seaborn-image cmaps can now be set globally using set_image #15

Merged
merged 1 commit into from
Aug 5, 2020

Conversation

SarthakJariwala
Copy link
Owner

  • set_image() function now also changes and registers seaborn-image colormaps
  • default cmap is 'ice', set globally upon import
  • Note : this will change the default for any matplotlib figure until reset_defaults()is called to set it to matplotlib default viridis. This can, of course, also be done using set_image(cmap="viridis")

Example:

isns.set_image(cmap="acton") # use seaborn-image colormaps
isns.set_iamge(cmap="viridis") # matplotlib colormaps work as usual

@SarthakJariwala SarthakJariwala added the enhancement New feature or request label Aug 5, 2020
@codecov-commenter
Copy link

Codecov Report

Merging #15 into master will increase coverage by 0.80%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #15      +/-   ##
==========================================
+ Coverage   96.42%   97.23%   +0.80%     
==========================================
  Files           6        6              
  Lines         252      253       +1     
  Branches       52       51       -1     
==========================================
+ Hits          243      246       +3     
+ Misses          4        3       -1     
+ Partials        5        4       -1     
Impacted Files Coverage Δ
src/seaborn_image/_context.py 97.87% <100.00%> (+4.53%) ⬆️
src/seaborn_image/_core.py 93.82% <100.00%> (-0.15%) ⬇️
src/seaborn_image/_general.py 100.00% <100.00%> (ø)

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 e2a0baa...0b3ff07. Read the comment docs.

@SarthakJariwala SarthakJariwala merged commit a27a5b4 into master Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants