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.
2 parents 3284b17 + ad10a58 commit d1dd52aCopy full SHA for d1dd52a
1 file changed
lib/matplotlib/backends/backend_pgf.py
@@ -170,12 +170,9 @@ def make_pdf_to_png_converter():
170
except:
171
pass
172
# check for ghostscript
173
- try:
174
- gs = "gs" if sys.platform != "win32" else "gswin32c"
175
- check_output([gs, "-v"], stderr=subprocess.STDOUT)
+ gs, ver = mpl.checkdep_ghostscript()
+ if gs:
176
tools_available.append("gs")
177
- except:
178
- pass
179
180
# pick converter
181
if "pdftocairo" in tools_available:
0 commit comments