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

allow missing matplotlib when setting themes #2824

Merged
merged 7 commits into from
Jun 23, 2022

Conversation

akaszynski
Copy link
Member

Fully resolves #2144.

Makes it possible to change global themes using pyvista.set_plot_theme('document') even when missing matplotlib. The colormap will be ignored but the user will be warned.

@github-actions github-actions bot added the enhancement Changes that enhance the library label Jun 19, 2022
@codecov
Copy link

codecov bot commented Jun 19, 2022

Codecov Report

Merging #2824 (29dbf52) into main (7df4de5) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #2824      +/-   ##
==========================================
+ Coverage   94.02%   94.03%   +0.01%     
==========================================
  Files          76       76              
  Lines       16395    16404       +9     
==========================================
+ Hits        15415    15426      +11     
+ Misses        980      978       -2     

Copy link
Member

@tkoyama010 tkoyama010 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

pyvista/plotting/colors.py Outdated Show resolved Hide resolved
pyvista/plotting/colors.py Outdated Show resolved Hide resolved
Copy link
Member

@adeak adeak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM too, thanks.

@tkoyama010 tkoyama010 merged commit c6ade02 into main Jun 23, 2022
@tkoyama010 tkoyama010 deleted the feat/ignore_matplotlib_colormap branch June 23, 2022 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Changes that enhance the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Theme validation on import requires matplotlib
3 participants