Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6fb17d9

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

File tree

Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-4
lines changed

‎.github/workflows/tests.yml

Copy file name to clipboardExpand all lines: .github/workflows/tests.yml
+3-3Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/testing/compare.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.