Skip to content

Commit bc557b7

Browse files
committed
Propagate kwargs
1 parent e8f6fc5 commit bc557b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ansys/dpf/core/geometry.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def plot(self, mesh=None, **kwargs):
115115
"""Visualize Points object. If provided, ``mesh`` will be also plotted."""
116116
cpos = kwargs.pop("cpos", None)
117117
pl = DpfPlotter(**kwargs)
118-
pl.add_points(self._coordinates.data, render_points_as_spheres=True, point_size=10)
118+
pl.add_points(self._coordinates.data, render_points_as_spheres=True, **kwargs)
119119
if mesh:
120120
pl.add_mesh(mesh, style="surface", show_edges=True, color="w", opacity=0.3)
121121
pl.show_figure(show_axes=True, cpos=cpos)
@@ -246,7 +246,7 @@ def plot(self, mesh=None, **kwargs):
246246

247247
# Plot line object
248248
pl = DpfPlotter(**kwargs)
249-
pl.add_line(self._coordinates.data, width=5)
249+
pl.add_line(self._coordinates.data, **kwargs)
250250
if mesh:
251251
pl.add_mesh(mesh, style="surface", show_edges=True, color="w", opacity=0.3)
252252
pl.show_figure(show_axes=True, cpos=cpos)
@@ -448,7 +448,7 @@ def plot(self, mesh=None, **kwargs):
448448

449449
# Plot plane object
450450
pl = DpfPlotter(**kwargs)
451-
pl.add_plane(self)
451+
pl.add_plane(self, **kwargs)
452452
if mesh:
453453
pl.add_mesh(mesh, style="surface", show_edges=True, color="w", opacity=0.3)
454454
pl.show_figure(show_axes=True, cpos=cpos)

0 commit comments

Comments
 (0)