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

Plot changes when DEFAULTS are not rebuild. #3568

Open
germa89 opened this issue Nov 22, 2024 · 0 comments
Open

Plot changes when DEFAULTS are not rebuild. #3568

germa89 opened this issue Nov 22, 2024 · 0 comments

Comments

@germa89
Copy link
Collaborator

germa89 commented Nov 22, 2024

I had to make the plotting defaults...

class DefaultSymbol:
# Class to store the symbols because of https://github.com/ansys/pymapdl/issues/2872
# To solve that issue, we avoid having to load the pyvista attributes when the module is load.
# Instead we set the parameters at calling
def __init__(self):
self._configured = False
def __call__(self, name):
if True: # not self._configured:
self._set_configuration()
self._configured = True
return getattr(self, name)
def _set_configuration(self):
self._point = pv.Sphere(center=(0, 0, 0), radius=0.5)

to be reinstantiated every time they are called, in here:

c80bca6

Because I was having random changes in the plots:

Image

Image

Basically, the glyphs were offset as well as the legend glyps.

Clearly there is something in our tests that change the glyphs configuration. I do not have the time now to investigate.

Pinging @AlejandroFernandezLuces for awareness.

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

1 participant