Skip to content

Commit c672dc0

Browse files
committed
fix(doctest): fix doctests for plots
1 parent 9198cd1 commit c672dc0

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

src/ansys/dpf/core/field.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,7 @@ def plot(
543543
>>> fields_container = disp.outputs.fields_container()
544544
>>> field = fields_container[0]
545545
>>> mesh.plot(field)
546+
(None, <pyvista.plotting.plotter.Plotter ...>)
546547
547548
Parameters
548549
----------

src/ansys/dpf/core/meshed_region.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -586,6 +586,7 @@ def plot(
586586
>>> disp = model.results.displacement()
587587
>>> field = disp.outputs.fields_container()[0]
588588
>>> model.metadata.meshed_region.plot(field)
589+
(None, <pyvista.plotting.plotter.Plotter ...>)
589590
590591
"""
591592
if field_or_fields_container is not None:

src/ansys/dpf/core/meshes_container.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def plot(self, fields_container=None, deform_by=None, scale_factor=1.0, **kwargs
9393
... )
9494
>>> disp_fc = disp_op.outputs.fields_container()
9595
>>> meshes_cont.plot(disp_fc)
96+
(None, <pyvista.plotting.plotter.Plotter ...>)
9697
9798
"""
9899
# DPF defaults

src/ansys/dpf/core/model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ def plot(self, color="w", show_edges=True, **kwargs):
254254
>>> transient = examples.download_transient_result()
255255
>>> model = Model(transient)
256256
>>> model.plot()
257+
(None, <pyvista.plotting.plotter.Plotter ...>)
257258
258259
"""
259260
from ansys.dpf.core.plotter import DpfPlotter

0 commit comments

Comments
 (0)