diff --git a/src/pyedb/dotnet/edb_core/edb_data/nets_data.py b/src/pyedb/dotnet/edb_core/edb_data/nets_data.py index cb60e9bc52..0671d73f69 100644 --- a/src/pyedb/dotnet/edb_core/edb_data/nets_data.py +++ b/src/pyedb/dotnet/edb_core/edb_data/nets_data.py @@ -136,7 +136,7 @@ def plot( Whether to show the plot or not. Default is `True`. """ - self._app.nets.plot( + return self._app.nets.plot( self.name, layers=layers, show_legend=show_legend, diff --git a/src/pyedb/dotnet/edb_core/nets.py b/src/pyedb/dotnet/edb_core/nets.py index 644cd945ff..25385df91e 100644 --- a/src/pyedb/dotnet/edb_core/nets.py +++ b/src/pyedb/dotnet/edb_core/nets.py @@ -763,7 +763,7 @@ def plot( fig_size_y = board_size_y * fig_size_x / board_size_x size = (fig_size_x, fig_size_y) - plot_matplotlib( + return plot_matplotlib( plot_data=object_lists, size=size, show_legend=show_legend,