Skip to content

Commit

Permalink
Remove plt.close from test
Browse files Browse the repository at this point in the history
  • Loading branch information
wshanks committed Sep 19, 2023
1 parent 974c76d commit 2d3dc6f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions test/visualization/test_plotter_mpldrawer.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,10 @@ def test_series_names_different_types(self, series_names: Dict[type, List[Any]])
string.
"""

plt.close("all")
# Create Matplotlib axes that use a PNG backend. The default backend, FigureCanvasSVG, does not
# have `buffer_rgba()` which is needed to compute the difference between two figures in this
# method. We need to set the axes as MplDrawer will use
# `qiskit_experiments.framework.matplotlib.get_non_gui_ax` by default; which uses an SVG backend.
plt.close("all")
plt.switch_backend("Agg")
axes = {}
for key in series_names.keys():
Expand Down

0 comments on commit 2d3dc6f

Please sign in to comment.