Showing plsect plots in jupyter lab #1624
-
Hi I've used the LatheCutter.ipynb example and noticed that you can plot elements or lines with "vtk=False" (mapdl.lplot(vtk=False) and mapdl.eplot(vtk=False)) in that notebook. This produces png images of the model as they would be displayed in ANSYS, and then shows these png-images directly in the notebook. But when I try to do this in other notebooks the png-files are created (although I usually have to run the command twice because the first png is just a 4 Bytes file that cannot be viewed), but don't show up in the notebook. I'm wondering if there is some setting I have to apply somewhere? The only thing I can think that I haven't tried must be some command hidden inside the LatheCutter.anf file. The reason why I want this to work is because I want to use the mapdl.plsect('S','EQV',vtk=False) command, since I couldn't find any pyansys examples using PLSECT. Edit: So it does seem to work inside PREP7 (at least mapdl.lplot(vtk=False) and mapdl.eplot(vtk=False) do work), but not in POST1. When I run the mapdl.plsect('S','EQV',vtk=False) command in POST1 I get this message: DISPLAY LINEARIZED STRESS USING NODES DEFINED BY LPATH COMMAND. CUMULATIVE DISPLAY NUMBER 7 WRITTEN TO FILE file007.png - RASTER MODE. The notebook does generate the png file though. Any ideas why displaying the image works in PREP7 but not POST1? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @MrMechanics https://mapdl.docs.pyansys.com/user_guide/plotting.html The k/a/l/v/e/n plot commands in PyMAPDL are not the APDL plotting commands per se; rather they are implementations of those done via VTK written so that the plots can be embedded into the JL notebook. Mike |
Beta Was this translation helpful? Give feedback.
Hi @MrMechanics
Please see this section of the PyMAPDL documentation site:
https://mapdl.docs.pyansys.com/user_guide/plotting.html
The k/a/l/v/e/n plot commands in PyMAPDL are not the APDL plotting commands per se; rather they are implementations of those done via VTK written so that the plots can be embedded into the JL notebook.
Mike