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

Inconsistent behaviour when changing widget color of mesh clip plane #4760

Open
machur opened this issue Aug 11, 2023 · 0 comments
Open

Inconsistent behaviour when changing widget color of mesh clip plane #4760

machur opened this issue Aug 11, 2023 · 0 comments
Labels
bug Uh-oh! Something isn't working as expected.

Comments

@machur
Copy link

machur commented Aug 11, 2023

Describe the bug, what's wrong, and what you expected.

I've tried to change the color of clip box around a mesh using plotter's add_mesh_clip_plane method. It looks like the behaviour of "wigdet_color" parameter is not consistent: with lighter colors the box remains white and only the arrow is painted, for darker colors the whole box is displayed in the defined color. Would you please advice how to set the color to the whole clipping box for lighter palette?

Steps to reproduce the bug.

import pyvista as pv

p = pv.Plotter()
p.add_mesh_clip_plane(pv.Sphere(radius=3, center=(0, 0, 0)), widget_color="red")  # pink
p.show()

System Information

Date: Sat Aug 12 00:12:55 2023 Central European Daylight Time

                OS : Windows
            CPU(s) : 12
           Machine : AMD64
      Architecture : 64bit
       Environment : Python
        GPU Vendor : NVIDIA Corporation
      GPU Renderer : NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2
       GPU Version : 4.5.0 NVIDIA 516.94

  Python 3.8.13 | packaged by conda-forge | (default, Mar 25 2022, 05:59:00)
  [MSC v.1929 64 bit (AMD64)]

           pyvista : 0.37.0
               vtk : 9.1.0
             numpy : 1.22.4
           imageio : 2.19.3
            scooby : 0.5.12
             pooch : v1.6.0
        matplotlib : 3.5.2
         pyvistaqt : 0.9.0
             scipy : 1.8.1
--------------------------------------------------------------------------------

Screenshots

For color "pink" (lighter):
image

For color "red" (darker):
image

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

No branches or pull requests

1 participant