Skip to content

Bug when static plotting #3832

@chrisg564

Description

@chrisg564

🤓 Before submitting the issue

🔍 Description of the bug

Static plots render interactively.

Image

🕵️ Steps To Reproduce

# # PyMAPDL Example: Perform thermal analysis of a rectangular plate subjected to constant temperature 100 degree as a boundary condition. Compute nodal temperature as a output.
# ## Create MAPDL Instance
from ansys.mapdl.core import launch_mapdl
import pandas as pd
mapdl = launch_mapdl()
print(mapdl)
# ## Set Up Model
mapdl.prep7()
# ## Define material properties and specify 3D 20 node thermal element (Solid90)
mapdl.mp('kxx', 1, 45)
mapdl.et(1, 90)
# ## Create a rectangular plate and Mesh
mapdl.block(-0.3, 0.3, -0.46, 1.34, -0.2, -0.2 + 0.02)
mapdl.vsweep(1)
p = mapdl.eplot(return_plotter=True)
p.show(jupyter_backend='static')
# ## Set up Constraints
mapdl.asel('S', vmin=3)
mapdl.nsla()
mapdl.d('all', 'temp', 5)
mapdl.asel('S', vmin=4)
mapdl.nsla()
mapdl.d('all', 'temp', 100)
out = mapdl.allsel()
mapdl.vsweep(1)
# ## Finish Pre-processing processor
mapdl.finish()
# ## Run the Solve
mapdl.slashsolu()
output = mapdl.solve()
print(output)
# ## Finish solution processor
mapdl.finish()
# ## Process the Results (Visually)
mapdl.post1()
mapdl.set(1, 1)
p = mapdl.post_processing.plot_nodal_temperature(return_plotter=True)
p.show(jupyter_backend='static')
# ## Process the Results (Programmatically)
result = mapdl.result
nnum, temp = result.nodal_temperature(0)
print(nnum)
# ## Finish post-processing processor
mapdl.finish()
# ## Bring the Nodal Results in to Pandas
d = pd.DataFrame({'Node Number': nnum, 'Temperature': temp}, columns=['Node Number', 'Temperature'])
print(d)
# ## Terminate the MAPDL instance
mapdl.exit()
# ## End of Example

💻 Which Operating System are you using?

Linux

🐍 Which Python version are you using?

3.11

💾 Which MAPDL version are you using?

2025R1

📝 PyMAPDL Report

Show the Report!

# PASTE HERE THE OUTPUT OF `python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"` here

📝 Installed packages

Show the installed packages!

aiohappyeyeballs==2.4.0
aiohttp==3.10.5
aiosignal==1.3.1
alembic @ file:///home/conda/feedstock_root/build_artifacts/alembic_1694690212886/work
annotated-types==0.7.0
ans.protocol.amk==0.1.0b9
ansys-acp-core==0.1.0
ansys-additive-core==0.19.1
ansys-additive-widgets==0.2.1
ansys-api-acp==0.2.0
ansys-api-additive==2.2.1
ansys-api-dbu==0.3.13
ansys-api-dyna==0.4.2
ansys-api-edb==1.0.10
ansys-api-fluent==0.3.35
ansys-api-geometry==0.4.42
ansys-api-mapdl==0.5.2
ansys-api-mechanical==0.1.2
ansys-api-meshing-prime==0.1.4
ansys-api-modelcenter==0.3.1
ansys-api-platform-instancemanagement==1.1.0
ansys-api-pyensight==0.4.7
ansys-api-sherlock==0.1.35
ansys-api-systemcoupling==0.2.0
ansys-api-tools-filetransfer==0.1.0
ansys-api-workbench==0.2.0
ansys-cloud-core==1.2.0
ansys-conceptev-core==0.8
ansys-dpf-composites==0.6.2
ansys-dpf-core==0.13.4
ansys-dpf-post==0.9.2
ansys-dyna-core==0.7.1
ansys-dynamicreporting-core==0.9.0
ansys-edb-core==0.1.9
ansys-engineeringworkflow-api==0.1.0
ansys-fluent-core==0.29.0
ansys-fluent-visualization==0.18.0
ansys-geometry-core==0.9.1
ansys-grantami-bomanalytics==2.2.0
ansys-grantami-bomanalytics-openapi==3.1.0
ansys-grantami-jobqueue==1.1.0
ansys-grantami-recordlists==1.3.0
ansys-grantami-serverapi-openapi==4.0.0
ansys-hps-client==0.9.1
ansys-lab==0.1.69
ansys-mapdl-core==0.68.6
ansys-mapdl-reader==0.54.2
ansys-materials-manager==0.2.3
ansys-math-core==0.2.2
ansys-mechanical-core==0.11.13
ansys-mechanical-env==0.1.9
ansys-mechanical-stubs==0.1.6
ansys-meshing-prime==0.7.0
ansys-modelcenter-workflow==0.1.1
ansys-motorcad-core==0.7.0
ansys-openapi-common==2.1.1
ansys-optislang-core==0.9.4
ansys-platform-instancemanagement==1.1.2
ansys-pyensight-core==0.9.10
ansys-pythonnet==3.1.0rc6
ansys-rocky-core==0.3.2
ansys-seascape==0.2.0
ansys-sherlock-core==0.8.2
ansys-simai-core==0.2.6
ansys-simbuilder-core==2.80.0
ansys-sound-core==0.1.3
ansys-systemcoupling-core==0.8.0
ansys-tools-filetransfer==0.1.1
ansys-tools-local-product-launcher==0.1.1
ansys-tools-path==0.7.1
ansys-tools-visualization-interface==0.8.3
ansys-turbogrid-api==0.4.3
ansys-turbogrid-core==0.4.1
ansys-units==0.3.5
ansys-workbench-core==0.8.0
ansyscodefest @ file:///home/jovyan/ansyscodefest-0.1.18-py3-none-any.whl#sha256=8b26cc10fe2679c2182e5f1f2c79364ddfcde63d4e4ec403e2921f4763058dd5
ansysedt-adaptors==24.1.418
anyio==3.7.1
appdirs==1.4.4
argon2-cffi==23.1.0
argon2-cffi-bindings==21.2.0
arrow @ file:///home/conda/feedstock_root/build_artifacts/arrow_1696128962909/work
asgiref==3.8.1
asttokens==2.4.1
async-generator==1.10
async-lru @ file:///home/conda/feedstock_root/build_artifacts/async-lru_1690563019058/work
attrs==24.2.0
babel==2.16.0
backcall @ file:///home/conda/feedstock_root/build_artifacts/backcall_1592338393461/work
backoff==2.2.1
backports.entry-points-selectable==1.3.0
backports.functools-lru-cache @ file:///home/conda/feedstock_root/build_artifacts/backports.functools_lru_cache_1687772187254/work
backports.tarfile==1.2.0
bcrypt==4.2.0
beartype==0.18.5
beautifulsoup4==4.12.3
bleach==6.1.0
blinker @ file:///home/conda/feedstock_root/build_artifacts/blinker_1696764509355/work
bokeh==3.4.3
boltons @ file:///home/conda/feedstock_root/build_artifacts/boltons_1677499911949/work
boto3==1.35.24
botocore==1.35.24
Brotli @ file:///home/conda/feedstock_root/build_artifacts/brotli-split_1695989787169/work
build==1.2.2
CacheControl==0.13.1
cached-property @ file:///home/conda/feedstock_root/build_artifacts/cached_property_1615209429212/work
cachetools==5.5.0
Cartopy==0.22.0
certifi==2024.8.30
certipy==0.1.3
cffi==1.17.1
charset-normalizer==3.3.2
cleo==2.1.0
click==8.1.7
clr-loader==0.2.6
colorama @ file:///home/conda/feedstock_root/build_artifacts/colorama_1666700638685/work
comm==0.2.2
conda @ file:///home/conda/feedstock_root/build_artifacts/conda_1696225914875/work
conda-package-handling @ file:///home/conda/feedstock_root/build_artifacts/conda-package-handling_1691048088238/work
conda_package_streaming @ file:///home/conda/feedstock_root/build_artifacts/conda-package-streaming_1691009212940/work
contourpy==1.3.0
crashtest==0.4.1
cryptography==43.0.1
cycler==0.12.1
dataclasses-json==0.6.7
debugpy==1.8.5
decorator==5.1.1
defusedxml==0.7.1
Deprecated==1.2.14
dill==0.3.8
distlib==0.3.9
distro==1.9.0
Django==4.2.18
django-guardian==2.4.0
djangorestframework==3.15.2
docker==7.1.0
dotnetcore2==3.1.23
dulwich==0.21.7
ecdsa==0.19.0
elementpath==4.5.0
entrypoints==0.4
exceptiongroup @ file:///home/conda/feedstock_root/build_artifacts/exceptiongroup_1692026125334/work
executing==2.1.0
fabric==3.2.2
fastjsonschema==2.20.0
filelock==3.16.1
flatbuffers==24.3.25
flexcache==0.3
flexparser==0.3.1
fonttools==4.53.1
fpdf2==2.7.9
fqdn @ file:///home/conda/feedstock_root/build_artifacts/fqdn_1638810296540/work/dist
frozenlist==1.4.1
geomdl==5.3.1
gmsh==4.13.1
google-api-core==2.20.0
google-api-python-client==2.146.0
google-auth==2.35.0
google-auth-httplib2==0.2.0
googleapis-common-protos==1.65.0
greenlet @ file:///home/conda/feedstock_root/build_artifacts/greenlet_1696597334170/work
grpcio==1.66.1
grpcio-health-checking==1.48.2
grpcio-status==1.48.2
h11==0.14.0
hollerith==0.6.0
httpcore==1.0.5
httplib2==0.22.0
httpx==0.26.0
idna==3.10
importlib-resources @ file:///home/conda/feedstock_root/build_artifacts/importlib_resources_1695414790617/work
importlib_metadata==8.5.0
installer==0.7.0
invoke==2.2.0
ipycanvas==0.13.3
ipydatawidgets==4.3.5
ipyevents==2.0.2
ipykernel==6.29.5
ipython==8.27.0
ipython-genutils==0.2.0
ipyvtklink==0.2.3
ipywidgets==7.8.4
isoduration @ file:///home/conda/feedstock_root/build_artifacts/isoduration_1638811571363/work/dist
jaraco.classes==3.4.0
jedi==0.19.1
jeepney==0.8.0
Jinja2==3.1.4
jmespath==1.0.1
joblib==1.4.2
json5==0.9.25
jsonpatch @ file:///home/conda/feedstock_root/build_artifacts/jsonpatch_1695536281965/work
jsonpointer @ file:///home/conda/feedstock_root/build_artifacts/jsonpointer_1695397236330/work
jsonschema==4.23.0
jsonschema-specifications==2023.12.1
jupyter==1.1.1
jupyter-ansys-commands==0.1.68
jupyter-ansys-docmanager==0.1.2
jupyter-console==6.6.3
jupyter-events @ file:///home/conda/feedstock_root/build_artifacts/jupyter_events_1697461661078/work
jupyter-lsp @ file:///home/conda/feedstock_root/build_artifacts/jupyter-lsp-meta_1685453365113/work/jupyter-lsp
jupyter-server==1.24.0
jupyter-telemetry @ file:///home/conda/feedstock_root/build_artifacts/jupyter_telemetry_1605173804246/work
jupyter_client==8.6.3
jupyter_core==5.7.2
jupyter_server_proxy==4.4.0
jupyter_server_terminals @ file:///home/conda/feedstock_root/build_artifacts/jupyter_server_terminals_1673491454549/work
jupyterhub @ file:///home/conda/feedstock_root/build_artifacts/jupyterhub-feedstock_1691671359799/work
jupyterlab==3.4.0
jupyterlab-ansys-theme==0.1.5
jupyterlab-topbar==0.6.1
jupyterlab_pygments==0.3.0
jupyterlab_server==2.27.3
jupyterlab_widgets==1.1.10
keyring==24.3.1
kiwisolver==1.4.7
libmambapy @ file:///home/conda/feedstock_root/build_artifacts/mamba-split_1697482692941/work/libmambapy
linkify-it-py==2.0.3
lxml==5.3.0
Mako @ file:///home/conda/feedstock_root/build_artifacts/mako_1668568582731/work
mamba @ file:///home/conda/feedstock_root/build_artifacts/mamba-split_1697482692941/work/mamba
Markdown==3.7
markdown-it-py==3.0.0
MarkupSafe==2.1.5
marshmallow==3.22.0
marshmallow-oneofschema==3.1.1
matplotlib==3.9.2
matplotlib-inline==0.1.7
mdit-py-plugins==0.4.2
mdurl==0.1.2
meshio==5.3.5
mistune==0.8.4
more-itertools==10.5.0
msal==1.31.1
msal-extensions==1.2.0
msgpack==1.1.0
multidict==6.1.0
mypy-extensions==1.0.0
nbclassic==0.5.6
nbclient==0.10.0
nbconvert==6.5.4
nbformat==5.10.4
nest-asyncio==1.6.0
networkx==3.4.2
nltk==3.9.1
notebook==6.5.4
notebook_shim==0.2.4
numpy==1.26.4
oauthlib @ file:///home/conda/feedstock_root/build_artifacts/oauthlib_1666056362788/work
overrides==7.7.0
packaging==24.1
pamela @ file:///home/conda/feedstock_root/build_artifacts/pamela_1691565434937/work
pandas==2.2.3
pandocfilters==1.5.1
panel==1.4.4
param==2.1.1
paramiko==3.5.0
parso==0.8.4
patsy==1.0.1
pexpect==4.9.0
pickleshare @ file:///home/conda/feedstock_root/build_artifacts/pickleshare_1602536217715/work
pillow==10.4.0
Pint==0.24.3
pkginfo==1.12.1.2
pkgutil_resolve_name @ file:///home/conda/feedstock_root/build_artifacts/pkgutil-resolve-name_1694617248815/work
platformdirs==4.3.6
plotly==5.24.1
pluggy @ file:///home/conda/feedstock_root/build_artifacts/pluggy_1693086607691/work
plumbum==1.8.3
poetry==1.7.1
poetry-core==1.8.1
poetry-plugin-export==1.6.0
pooch==1.8.2
portalocker==2.10.1
prettytable==3.11.0
prometheus_client==0.21.0
prompt_toolkit==3.0.47
propcache==0.3.0
proto-plus==1.24.0
protobuf==3.20.3
psutil==6.1.1
ptyprocess==0.7.0
pure_eval==0.2.3
pyaedt==0.15.0
pyansys==2025.1.3
pyansys-tools-report==0.8.2
pyansys-tools-variableinterop==0.1.1
pyansys-tools-versioning==0.6.0
pyasn1==0.6.1
pyasn1_modules==0.4.1
pycosat @ file:///home/conda/feedstock_root/build_artifacts/pycosat_1696355758146/work
pycparser==2.22
pycryptodome==3.20.0
pycurl==7.45.1
pydantic==2.9.2
pydantic_core==2.23.4
pyedb==0.37.0
PyGithub==2.4.0
pygltflib==1.16.3
Pygments==2.18.0
pygranta==2025.1.0
pyiges==0.3.1
PyJWT==2.9.0
PyNaCl==1.5.0
pyOpenSSL @ file:///home/conda/feedstock_root/build_artifacts/pyopenssl_1685514481738/work
pyparsing==3.1.4
pypng==0.20220715.0
pyproj==3.6.1
pyproject_hooks==1.1.0
PyQt5==5.15.6
PyQt5-Qt5==5.15.2
PyQt5_sip==12.15.0
Pyro5==5.15
pyshp==2.3.1
PySide6==6.8.1.1
PySide6_Addons==6.8.1.1
PySide6_Essentials==6.8.1.1
PySocks @ file:///home/conda/feedstock_root/build_artifacts/pysocks_1661604839144/work
pyspnego==0.11.1
python-dateutil==2.9.0.post0
python-dotenv==1.0.1
python-jose==3.3.0
python-json-logger @ file:///home/conda/feedstock_root/build_artifacts/python-json-logger_1677079630776/work
python-pptx==0.6.19
pythreejs==2.4.2
pytwin==0.7.0
pytz==2024.2
pyvista==0.44.2
pyvistaqt==0.11.1
pyviz_comms==3.0.3
PyYAML==6.0.2
pyzmq==26.2.0
QtPy==2.4.1
RapidFuzz==3.12.2
referencing==0.35.1
regex==2024.9.11
requests==2.32.3
requests-toolbelt==1.0.0
requests_ntlm==1.3.0
rfc3339-validator @ file:///home/conda/feedstock_root/build_artifacts/rfc3339-validator_1638811747357/work
rfc3986-validator @ file:///home/conda/feedstock_root/build_artifacts/rfc3986-validator_1598024191506/work
rich==13.8.1
rpds-py==0.20.0
rpyc==6.0.0
rsa==4.9
Rtree==1.3.0
ruamel.yaml @ file:///home/conda/feedstock_root/build_artifacts/ruamel.yaml_1697743515120/work
ruamel.yaml.clib @ file:///home/conda/feedstock_root/build_artifacts/ruamel.yaml.clib_1695996834452/work
rustworkx==0.12.0
s3transfer==0.10.2
scikit-rf==1.3.0
scipy==1.14.1
scooby==0.10.0
SecretStorage==3.3.3
semver==3.0.2
Send2Trash==1.8.3
serpent==1.41
shapely==2.0.6
shellingham==1.5.4
shiboken6==6.8.1.1
simpervisor==1.0.0
simple-upload-server-client==0.0.1
six==1.16.0
sniffio==1.3.1
soupsieve==2.6
SQLAlchemy @ file:///home/conda/feedstock_root/build_artifacts/sqlalchemy_1697201147541/work
sqlparse==0.5.1
sseclient-py==1.8.0
stack-data==0.6.3
statsmodels==0.14.4
tabulate==0.9.0
tenacity==9.0.0
terminado==0.18.1
tinycss2==1.3.0
toml==0.10.2
tomli==2.0.1
tomli_w==1.1.0
tomlkit==0.13.2
tornado==6.4.1
tqdm==4.66.5
traitlets==5.14.3
traittypes==0.2.1
trame==3.6.5
trame-client==3.3.1
trame-server==3.2.3
trame-vtk==2.8.11
trame-vuetify==2.7.1
transformations==2025.1.1
trove-classifiers==2025.3.13.13
truststore==0.10.1
types-python-dateutil @ file:///home/conda/feedstock_root/build_artifacts/types-python-dateutil_1689882883784/work
types-requests==2.31.0.6
types-six==1.16.21.20240513
types-urllib3==1.26.25.14
typing-inspect==0.9.0
typing-utils @ file:///home/conda/feedstock_root/build_artifacts/typing_utils_1622899189314/work
typing_extensions==4.12.2
tzdata==2024.1
tzlocal==5.3
uc-micro-py==1.0.3
uri-template @ file:///home/conda/feedstock_root/build_artifacts/uri-template_1688655812972/work/dist
uritemplate==4.1.1
urllib3==1.26.20
usd-core==24.8
virtualenv==20.29.3
vtk==9.3.1
vtk-osmesa @ https://github.com/pyvista/pyvista-wheels/raw/main/vtk_osmesa-9.2.5-cp311-cp311-linux_x86_64.whl#sha256=28f4c1a1798d3348a90114a542c3a46e1104a806f17d66aaf91309cd5828b27c
wakepy==0.10.1
wcwidth==0.2.13
webcolors @ file:///home/conda/feedstock_root/build_artifacts/webcolors_1679900785843/work
webencodings==0.5.1
websocket-client==1.8.0
websockets==15.0
widgetsnbextension==3.6.9
wrapt==1.16.0
wslink==2.2.1
XlsxWriter==3.2.2
xmlschema==3.4.3
xyzservices==2024.9.0
yarl==1.11.1
zipp==3.20.2
zstandard==0.21.0

📝 Logger output file

Show the logger output file.

# PASTE HERE THE CONTENT OF THE LOGGER OUTPUT FILE.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue, problem or error in PyMAPDL

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions