Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1363dbf

Browse files
committed
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).
1 parent 02746fa commit 1363dbf

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/matplotlib/pyplot.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -766,9 +766,6 @@ def figure(num=None, # autoincrement if None, else integer from 1-N
766766
f"warning, see the rcParam `figure.max_open_warning`).",
767767
RuntimeWarning)
768768

769-
if get_backend().lower() == 'ps':
770-
dpi = 72
771-
772769
manager = new_figure_manager(
773770
num, figsize=figsize, dpi=dpi,
774771
facecolor=facecolor, edgecolor=edgecolor, frameon=frameon,

0 commit comments

Comments
 (0)