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

Plotting errors during doc building #2328

Closed
germa89 opened this issue Sep 11, 2023 · 0 comments · Fixed by #2537
Closed

Plotting errors during doc building #2328

germa89 opened this issue Sep 11, 2023 · 0 comments · Fixed by #2537

Comments

@germa89
Copy link
Collaborator

germa89 commented Sep 11, 2023

I am opening this issue for the record, and to go back to this in the future.

Disabling show_area_numbering in mapdl.vplot (See #2319), because I was getting the following error:

Extension error:
Here is a summary of the problems encountered when running the examples

Unexpected failing examples:
/home/runner/work/pymapdl/pymapdl/examples/00-mapdl-examples/pressure_vessel.py failed leaving traceback:
Traceback (most recent call last):
  File "/home/runner/work/pymapdl/pymapdl/examples/00-mapdl-examples/pressure_vessel.py", line 56, in <module>
    mapdl.vplot(color="grey", background="w", show_area_numbering=True, cpos="zy")
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ansys/mapdl/core/mapdl.py", line 1729, in vplot
    pl = self.aplot(
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ansys/mapdl/core/mapdl.py", line 1985, in aplot
    return general_plotter(meshes, [], labels, **kwargs)
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ansys/mapdl/core/plotting.py", line 835, in general_plotter
    pl = _general_plotter(
  File "/opt/hostedtoolcache/Python/3.10.13/x64/lib/python3.10/site-packages/ansys/mapdl/core/plotting.py", line 475, in _general_plotter
    labels = np.array(label["labels"])[idx - 1].tolist()
IndexError: index 8 is out of bounds for axis 0 with size 7

Additionally, I had to disable color, and cpos because I was getting:

Warning:  Reference not found for 'pyvista_docs' at line 4 column 90

generating gallery for examples/gallery_examples/01-geometry... [ 80%] 03-volumes.py
generating gallery for examples/gallery_examples/01-geometry... [100%] 04-primitives.py
2023-09-11 15:20:46.279 ( 671.050s) [        4CACDB80]vtkXOpenGLRenderWindow.:464    ERR| vtkXOpenGLRenderWindow (0x56128ff9d880): bad X server connection. DISPLAY=:99. Aborting.

Aborted (core dumped)
make: *** [Makefile:21: html] Error 134

https://github.com/ansys/pymapdl/pull/2319/files#diff-080fae7729900069f2c2a0d470479b279ccdd9bcf3c123d1d59c3dc344063fd8L56

@germa89 germa89 changed the title Plotting labels bug in mapdl.aplot and mapdl.vplot Plotting errors during doc building Sep 19, 2023
@germa89 germa89 mentioned this issue Sep 19, 2023
6 tasks
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

Successfully merging a pull request may close this issue.

1 participant