Skip to content

Commit dfd9082

Browse files
committed
Corrected estrapy plotting by using defined runtimefigure.show
1 parent c433ade commit dfd9082

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/estrapy/estrapy.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,6 @@ def main():
177177
pass
178178

179179
# At the end of the commands, check if there are any figures that are not shown.
180-
if "figurerun" in context.options.other:
181-
all_figures = context.options.other["figurerun"]
182-
all_figures:dict[int, FigureRuntime]
183-
184-
figures = [fig for fig in all_figures.values() if not fig.shown]
185-
if figures:
186-
plt.show()
180+
if any([not fig.shown for fig in context.figures.figureruntimes.values()]):
181+
plt.show()
187182

0 commit comments

Comments
 (0)