From 1363dbfc86ac11ca143fdaed5e47683d17244a4c Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Tue, 17 Nov 2020 10:20:21 +0100 Subject: [PATCH] Remove special-casing for PostScript dpi in pyplot.py. It is slightly inelegant for pyplot to special-case the PS backend for fixed dpi, and anyways unnecessary because FigureCanvasPS._print_ps forces the dpi to 72 when saving the figure anyways. This is the same strategy as used by the other vector backends (pdf/svg). --- lib/matplotlib/pyplot.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/matplotlib/pyplot.py b/lib/matplotlib/pyplot.py index 935d364ff461..34fab6e268e2 100644 --- a/lib/matplotlib/pyplot.py +++ b/lib/matplotlib/pyplot.py @@ -766,9 +766,6 @@ def figure(num=None, # autoincrement if None, else integer from 1-N f"warning, see the rcParam `figure.max_open_warning`).", RuntimeWarning) - if get_backend().lower() == 'ps': - dpi = 72 - manager = new_figure_manager( num, figsize=figsize, dpi=dpi, facecolor=facecolor, edgecolor=edgecolor, frameon=frameon,