Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2396e90 commit b7a5cfdCopy full SHA for b7a5cfd
1 file changed
lib/matplotlib/tests/test_backends_interactive.py
@@ -220,7 +220,7 @@ def check_alt_backend(alt_backend):
220
fig.canvas.mpl_connect("close_event", print)
221
222
result = io.BytesIO()
223
- fig.savefig(result, format='png')
+ fig.savefig(result, format='png', dpi=100)
224
225
plt.show()
226
@@ -230,7 +230,7 @@ def check_alt_backend(alt_backend):
230
# When the figure is closed, it's manager is removed and the canvas is reset to
231
# FigureCanvasBase. Saving should still be possible.
232
result_after = io.BytesIO()
233
- fig.savefig(result_after, format='png')
+ fig.savefig(result_after, format='png', dpi=100)
234
235
if backend.endswith("agg"):
236
# agg-based interactive backends should save the same image as a non-interactive
0 commit comments