8000 Oops, add the patch file · MacPython/matplotlib-wheels@d49b287 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 16, 2021. It is now read-only.

Commit d49b287

Browse files
committed
Oops, add the patch file
1 parent 4d6c590 commit d49b287

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

patches/test_image.patch

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
--- tests/test_image.py.old 2017-05-02 17:05:55.000000000 +0100
2+
+++ tests/test_image.py 2017-05-02 17:06:50.000000000 +0100
3+
@@ -24,7 +24,7 @@
4+
from numpy.testing import (
5+
assert_array_equal, assert_array_almost_equal, assert_allclose)
6+
from matplotlib.testing.noseclasses import KnownFailureTest
7+
-from copy import copy
8+
+from copy import deepcopy
9+
from numpy import ma
10+
import matplotlib.image as mimage
11+
import matplotlib.colors as colors
12+
@@ -698,7 +698,7 @@
13+
Z2 = mlab.bivariate_normal(X, Y, 1.5, 0.5, 1, 1)
14+
Z = 10*(Z2 - Z1) # difference of Gaussians
15+
16+
- palette = copy(plt.cm.gray)
17+
+ palette = deepcopy(plt.cm.gray)
18+
palette.set_over('r', 1.0)
19+
palette.set_under('g', 1.0)
20+
palette.set_bad('b', 1.0)
21+
@@ -761,7 +761,7 @@
22+
remove_text=True, style='default')
23+
def test_imshow_masked_interpolation():
24+
25+
- cm = copy(plt.get_cmap('viridis'))
26+
+ cm = deepcopy(plt.get_cmap('viridis'))
27+
cm.set_over('r')
28+
cm.set_under('b')
29+
cm.set_bad('k')

0 commit comments

Comments
 (0)
0