Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ansys/fluent/post/matplotlib/matplot_windows_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class _ProcessPlotterHandle:

def __init__(
self,
plotter_id,
window_id,
curves=[],
title="XY Plot",
xlabel="position",
Expand All @@ -28,7 +28,7 @@ def __init__(
self._closed = False
self.plot_pipe, plotter_pipe = mp.Pipe()
self.plotter = ProcessPlotter(
plotter_id, curves, title, xlabel, ylabel
window_id, curves, title, xlabel, ylabel
)
self.plot_process = mp.Process(
target=self.plotter, args=(plotter_pipe,), daemon=True
Expand Down Expand Up @@ -326,9 +326,9 @@ def close_windows(
# private methods

def _open_window(
self, plotter_id: str
self, window_id: str
) -> Union[Plotter, _ProcessPlotterHandle]:
window = self._post_windows.get(plotter_id)
window = self._post_windows.get(window_id)
plotter = None
if (
window
Expand All @@ -337,8 +337,8 @@ def _open_window(
):
window.refresh = False
else:
window = MatplotWindow(plotter_id, None)
self._post_windows[plotter_id] = window
window = MatplotWindow(window_id, None)
self._post_windows[window_id] = window
if in_notebook():
window.plotter()
return window
Expand Down
16 changes: 8 additions & 8 deletions ansys/fluent/post/pyvista/pyvista_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _init_module(self, obj, mod):
class Mesh(MeshDefn):
"""Mesh graphics."""

def display(self, plotter_id: Optional[str] = None):
def display(self, window_id: Optional[str] = None):
"""
Display mesh graphics.

Expand All @@ -57,13 +57,13 @@ def display(self, plotter_id: Optional[str] = None):
window_id : str, optional
Window id. If not specified unique id is used.
"""
pyvista_windows_manager.plot(self, plotter_id)
pyvista_windows_manager.plot(self, window_id)


class Surface(SurfaceDefn):
"""Surface graphics."""

def display(self, plotter_id: Optional[str] = None):
def display(self, window_id: Optional[str] = None):
"""
Display surface graphics.

Expand All @@ -72,13 +72,13 @@ def display(self, plotter_id: Optional[str] = None):
window_id : str, optional
Window id. If not specified unique id is used.
"""
pyvista_windows_manager.plot(self, plotter_id)
pyvista_windows_manager.plot(self, window_id)


class Contour(ContourDefn):
"""Contour graphics."""

def display(self, plotter_id: Optional[str] = None):
def display(self, window_id: Optional[str] = None):
"""
Display contour graphics.

Expand All @@ -87,13 +87,13 @@ def display(self, plotter_id: Optional[str] = None):
window_id : str, optional
Window id. If not specified unique id is used.
"""
pyvista_windows_manager.plot(self, plotter_id)
pyvista_windows_manager.plot(self, window_id)


class Vector(VectorDefn):
"""Vector graphics."""

def display(self, plotter_id: Optional[str] = None):
def display(self, window_id: Optional[str] = None):
"""
Display vector graphics.

Expand All @@ -102,4 +102,4 @@ def display(self, plotter_id: Optional[str] = None):
window_id : str, optional
Window id. If not specified unique id is used.
"""
pyvista_windows_manager.plot(self, plotter_id)
pyvista_windows_manager.plot(self, window_id)