Open
Description
🔍 Before submitting the issue
- I have searched among the existing issues
- I am using a Python virtual environment
🐞 Description of the bug
Plots
Execute the code from https://developer.ansys.com/blog/pythonic-interface-ansys-fluent
as follow:
I just got a sketch and warning in jupyter notebook.
2023-08-15 11:09:29,541 matplotlib.legend WARNING No artists with labels found to put in legend. Note that artists whose label start with an underscore are ignored when legend() is called with no argument.
Graphics
I found something strange:
The contour was filled at the first time, as the example code.
temperature_contour = graphics.Contours["contour-temperature"]
temperature_contour.field = "temperature"
temperature_contour.surfaces_list = ["mid-plane-x",]
temperature_contour.display()
however, in my custom class, I have a function refer to the code:
def contour(self,contour_name:str,field:str,filled=True,surfaces_list:list=None):
con=self.graphics.Contours[contour_name]
# con.field.allowed_values
con.field=field
# con.filled=filled
# con.surfaces_list.allowed_values
con.surfaces_list=surfaces_list
con.display(contour_name)
the contour is not filled, even if add the con.filled=filled
.
I have tried many times, occasionally it works a few times by 'con.filled=True'
📝 Steps to reproduce
try the example
💻 Which operating system are you using?
Windows
📀 Which ANSYS version are you using?
No response
🐍 Which Python version are you using?
3.7
📦 Installed packages
(py38) C:\Users\Admin>python -m pip freeze
aiofiles==22.1.0
aiohttp==3.8.4
aiosignal==1.3.1
aiosqlite==0.18.0
ansys-api-fluent==0.3.11
ansys-api-platform-instancemanagement==1.0.0b3
ansys-fluent-core==0.13.0
ansys-fluent-visualization==0.7.1
ansys-platform-instancemanagement==1.0.3
anyio==3.6.2
appdirs==1.4.4
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
arrow==1.2.3
asttokens @ file:///home/conda/feedstock_root/build_artifacts/asttokens_1670263926556/work
async-timeout==4.0.2
attrs==22.2.0
Babel==2.12.1
backcall @ file:///home/conda/feedstock_root/build_artifacts/backcall_1592338393461/work
backports.functools-lru-cache @ file:///home/conda/feedstock_root/build_artifacts/backports.functools_lru_cache_1618230623929/work
beautifulsoup4==4.11.2
bleach==6.0.0
certifi==2022.12.7
cffi==1.15.1
charset-normalizer==3.0.1
colorama @ file:///home/conda/feedstock_root/build_artifacts/colorama_1666700638685/work
comm==0.1.3
contourpy==1.0.7
cycler==0.11.0
debugpy==1.6.7
decorator @ file:///home/conda/feedstock_root/build_artifacts/decorator_1641555617451/work
defusedxml==0.7.1
executing @ file:///home/conda/feedstock_root/build_artifacts/executing_1667317341051/work
fastjsonschema==2.16.3
fonttools==4.38.0
fqdn==1.5.1
frozenlist==1.3.3
geatpy==2.7.0
googleapis-common-protos==1.58.0
grpcio==1.51.3
h5py==3.8.0
idna==3.4
imageio==2.28.1
importlib-metadata @ file:///home/conda/feedstock_root/build_artifacts/importlib-metadata_1672612343532/work
importlib-resources==5.12.0
ipykernel==6.23.3
ipython @ file:///D:/bld/ipython_1676047671725/work
ipython-genutils==0.2.0
ipywidgets==8.0.6
isoduration==20.11.0
jedi @ file:///home/conda/feedstock_root/build_artifacts/jedi_1669134318875/work
Jinja2==3.1.2
json5==0.9.11
jsonpointer==2.3
jsonschema==4.17.3
jupyter-events==0.6.3
jupyter-ydoc==0.2.2
jupyter_client @ file:///home/conda/feedstock_root/build_artifacts/jupyter_client_1676579893731/work
jupyter_core @ file:///D:/bld/jupyter_core_1675110077853/work
jupyter_server==2.3.0
jupyter_server_fileid==0.8.0
jupyter_server_terminals==0.4.4
jupyter_server_ydoc==0.6.1
jupyterlab==3.6.1
jupyterlab-pygments==0.2.2
jupyterlab-widgets==3.0.7
jupyterlab_server==2.19.0
kiwisolver==1.4.4
lxml==4.9.2
MarkupSafe==2.1.2
matplotlib==3.7.0
matplotlib-inline @ file:///home/conda/feedstock_root/build_artifacts/matplotlib-inline_1660814786464/work
mccabe==0.7.0
mistune==2.0.5
multidict==6.0.4
nbclassic==0.5.2
nbclient==0.7.2
nbconvert==7.2.9
nbformat==5.7.3
nest-asyncio @ file:///home/conda/feedstock_root/build_artifacts/nest-asyncio_1664684991461/work
notebook==6.5.2
notebook_shim==0.2.2
numpy==1.24.2
packaging @ file:///home/conda/feedstock_root/build_artifacts/packaging_1673482170163/work
pandas==1.5.3
pandocfilters==1.5.0
parso @ file:///home/conda/feedstock_root/build_artifacts/parso_1638334955874/work
pickleshare @ file:///home/conda/feedstock_root/build_artifacts/pickleshare_1602536217715/work
Pillow==9.4.0
pkgutil_resolve_name==1.3.10
platformdirs @ file:///home/conda/feedstock_root/build_artifacts/platformdirs_1675735718929/work
pointwise-glyph-client==2.0.10
pooch==1.7.0
prometheus-client==0.16.0
prompt-toolkit @ file:///home/conda/feedstock_root/build_artifacts/prompt-toolkit_1670414775770/work
protobuf==3.20.3
protoc-gen-swagger==0.1.0
psutil @ file:///C:/Windows/Temp/abs_b2c2fd7f-9fd5-4756-95ea-8aed74d0039flsd9qufz/croots/recipe/psutil_1656431277748/work
pure-eval @ file:///home/conda/feedstock_root/build_artifacts/pure_eval_1642875951954/work
pycodestyle==2.10.0
pycparser==2.21
pyflakes==3.0.1
Pygments @ file:///home/conda/feedstock_root/build_artifacts/pygments_1672682006896/work
pyparsing==3.0.9
pyrsistent==0.19.3
PySide6==6.5.0
PySide6-Addons==6.5.0
PySide6-Essentials==6.5.0
python-dateutil @ file:///home/conda/feedstock_root/build_artifacts/python-dateutil_1626286286081/work
python-json-logger==2.0.7
pytz==2022.7.1
pyvista==0.39.0
pyvistaqt==0.10.0
pywin32==227
pywinpty==2.0.10
PyYAML==6.0
pyzmq==25.0.0
QtPy==2.3.1
requests==2.28.2
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
scipy==1.10.1
scooby==0.7.2
Send2Trash==1.8.0
shiboken6==6.5.0
six @ file:///home/conda/feedstock_root/build_artifacts/six_1620240208055/work
sniffio==1.3.0
soupsieve==2.4
stack-data @ file:///home/conda/feedstock_root/build_artifacts/stack_data_1669632077133/work
terminado==0.17.1
tinycss2==1.2.1
tomli==2.0.1
tornado @ file:///D:/bld/tornado_1656937958156/work
traitlets @ file:///home/conda/feedstock_root/build_artifacts/traitlets_1675110562325/work
trame==2.4.2
trame-client==2.7.5
trame-components==2.1.0
trame-deckgl==2.0.1
trame-markdown==2.0.2
trame-matplotlib==2.0.1
trame-plotly==2.1.0
trame-rca==0.3.1
trame-router==2.0.1
trame-server==2.11.0
trame-simput==2.3.1
trame-vega==2.0.2
trame-vtk==2.4.4
trame-vuetify==2.2.4
typing_extensions @ file:///home/conda/feedstock_root/build_artifacts/typing_extensions_1665144421445/work
uri-template==1.2.0
urllib3==1.26.14
vtk==9.2.6
wcwidth @ file:///home/conda/feedstock_root/build_artifacts/wcwidth_1673864653149/work
webcolors==1.12
webencodings==0.5.1
websocket-client==1.5.1
widgetsnbextension==4.0.7
wincertstore==0.2
wslink==1.10.1
y-py==0.5.9
yapf==0.32.0
yarl==1.9.2
ypy-websocket==0.8.2
zipp @ file:///home/conda/feedstock_root/build_artifacts/zipp_1676708471276/work
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog