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

3d plotting colors not matching (input data vs results) #1

Open
javoha opened this issue May 3, 2024 · 3 comments
Open

3d plotting colors not matching (input data vs results) #1

javoha opened this issue May 3, 2024 · 3 comments
Assignees

Comments

@javoha
Copy link
Member

javoha commented May 3, 2024

Describe the bug
When using the 3d plotting routine for certain models, the color of the inputa data (surface points and orientations) does not match the colors of the respective results (surface meshes, lith block). This only happens if show_lith_block=True, and we tracked it down to only happen on Windows system, not on Linux.
It also seems to be related to models having multiple structural elements in a structural group.

To Reproduce
Run the following example on a Windows system: Example7.

Expected behavior
Colors should match respective results on all systems.

Screenshots

Annotated example

Additional context
@Leguark suggested that you might be able to help @banesullivan, as this seems to be at least partially pyvista related.

Edit: Annotated example.

@Leguark Leguark transferred this issue from gempy-project/gempy May 3, 2024
@Leguark Leguark self-assigned this May 3, 2024
@banesullivan
Copy link

Would you please include a import pyvista;print(pyvista.Report()) for the Linux system this is working on and the windows system this is not working on.

Further, would you please annotate the screenshots a bit more clearly to help me understand which components are not colored correctly

@javoha
Copy link
Member Author

javoha commented May 6, 2024

Hi,
thanks for taking a look at this. I annotated the image in my first post. You can also compare it to the linked example (from a linux) where the colors are correct. We ran it on multiple windows and linux systems and were able to reproduce the behavior.

Here is the report from my windows (wrong result):


Date: Mon May 06 09:25:01 2024 W. Europe Daylight Time

            OS : Windows
        CPU(s) : 12
       Machine : AMD64
  Architecture : 64bit
           RAM : 15.9 GiB
   Environment : Jupyter
    GPU Vendor : Intel
  GPU Renderer : Intel(R) UHD Graphics 630
   GPU Version : 4.5.0 - Build 26.20.100.7261

MathText Support : False

Python 3.12.2 | packaged by Anaconda, Inc. | (main, Feb 27 2024, 17:28:07)
[MSC v.1916 64 bit (AMD64)]

       pyvista : 0.43.5
           vtk : 9.3.0
         numpy : 1.26.4
    matplotlib : 3.8.0
        scooby : 0.9.2
         pooch : 1.8.1
        pillow : 10.2.0
       imageio : 2.33.1
         PyQt5 : 5.15.10
       IPython : 8.20.0
      colorcet : 3.1.0
    ipywidgets : 7.8.1
         scipy : 1.11.3
          tqdm : 4.65.0
    jupyterlab : 4.0.11
  nest_asyncio : 1.6.0

And here the report from a linux (correct result):


Date: Mon May 06 09:35:42 2024 CEST

            OS : Linux
        CPU(s) : 12
       Machine : x86_64
  Architecture : 64bit
           RAM : 15.4 GiB
   Environment : Python
   File system : ext4
    GPU Vendor : Microsoft Corporation
  GPU Renderer : D3D12 (Intel(R) Iris(R) Xe Graphics)
   GPU Version : 4.1 (Core Profile) Mesa 23.0.4-0ubuntu1~22.04.1

MathText Support : True

Python 3.12.3 | packaged by conda-forge | (main, Apr 15 2024, 18:38:13) [GCC
12.3.0]

       pyvista : 0.43.6
           vtk : 9.3.0
         numpy : 1.26.4
    matplotlib : 3.8.4
        scooby : 0.9.2
         pooch : 1.8.1
        pillow : 10.3.0
       imageio : 2.34.1
       IPython : 8.24.0
         scipy : 1.13.0
    jupyterlab : 4.1.8
  nest_asyncio : 1.6.0

Cheers,
Jan

@banesullivan
Copy link

Thank you! I'll try to take a look into this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants