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

Skip to content

Commit 6fb17d9

Browse files
authored
Merge pull request #24018 from anntzer/depscrop
When comparing eps images, run ghostscript with -dEPSCrop.
2 parents 30e257c + 0bd9cf7 commit 6fb17d9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ jobs:
146146
~/.cache/matplotlib
147147
!~/.cache/matplotlib/tex.cache
148148
!~/.cache/matplotlib/test_cache
149-
key: 1-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-${{ github.sha }}
149+
key: 2-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-${{ github.sha }}
150150
restore-keys: |
151-
1-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-
152-
1-${{ runner.os }}-py${{ matrix.python-version }}-mpl-
151+
2-${{ runner.os }}-py${{ matrix.python-version }}-mpl-${{ github.ref }}-
152+
2-${{ runner.os }}-py${{ matrix.python-version }}-mpl-
153153
154154
- name: Install Python dependencies
155155
run: |

lib/matplotlib/testing/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def __call__(self, orig, dest):
103103
if not self._proc:
104104
self._proc = subprocess.Popen(
105105
[mpl._get_executable_info("gs").executable,
106-
"-dNOSAFER", "-dNOPAUSE", "-sDEVICE=png16m"],
106+
"-dNOSAFER", "-dNOPAUSE", "-dEPSCrop", "-sDEVICE=png16m"],
107107
# As far as I can see, ghostscript never outputs to stderr.
108108
stdin=subprocess.PIPE, stdout=subprocess.PIPE)
109109
try:

0 commit comments

Comments
 (0)