Skip to content

Commit bf9ed2a

Browse files
committed
fix some issues revealed by tests and github doc build
1 parent 84cf6ab commit bf9ed2a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/ansys/systemcoupling/core/charts/plotdefinition_manager.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ def set_metadata(self, metadata: InterfaceInfo):
243243
if transfer.transfer_display_name not in active_transfers:
244244
# We don't want this transfer on the convergence plot
245245
continue
246+
if self._conv_subplot is None:
247+
# This will be the case if the plot spec had `show_convergence=False`
248+
continue
249+
246250
# Clear the entry in case transfer names are not unique. (If another transfer
247251
# with the same name needs plotting, then it should appear as a second entry
248252
# in active_transfers.)

src/ansys/systemcoupling/core/charts/plotter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def update_line_series(self, series_data: SeriesData):
396396

397397
def close(self):
398398
for fig in self._figures:
399-
plt.close(fig)
399+
fig.close()
400400

401401
def show_plot(self, noblock=False):
402402
if noblock:

0 commit comments

Comments
 (0)