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

Do not add scalars when setting scalar bar title #2822

Merged
merged 4 commits into from
Jun 22, 2022

Conversation

akaszynski
Copy link
Member

Resolves #1900 by not adding new scalars when the name of the scalar bar title differs from the name of the scalar (if they already exist in the dataset).

@github-actions github-actions bot added the bug Uh-oh! Something isn't working as expected. label Jun 19, 2022
@codecov
Copy link

codecov bot commented Jun 19, 2022

Codecov Report

Merging #2822 (959c08a) into main (7df4de5) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #2822   +/-   ##
=======================================
  Coverage   94.02%   94.02%           
=======================================
  Files          76       76           
  Lines       16395    16406   +11     
=======================================
+ Hits        15415    15426   +11     
  Misses        980      980           

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 with a small maintenance-level suggestion.

pyvista/plotting/mapper.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.

Still LGTM, thanks!

@tkoyama010 tkoyama010 merged commit 0e3d9c4 into main Jun 22, 2022
@tkoyama010 tkoyama010 deleted the fix/added_scalars_with_title branch June 22, 2022 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Uh-oh! Something isn't working as expected.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Active scalars are added and changed if scalar bar title is passed to add_mesh
3 participants