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

Skip to content

Commit d3f416d

Browse files
committed
Update the backend tests with the new rcParam name 'image.combine_images'
1 parent 7114ad0 commit d3f416d

File tree

3 files changed

+0
-24
lines changed

3 files changed

+0
-24
lines changed

lib/matplotlib/tests/test_backend_pdf.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,11 @@ def test_combine_images():
9999
ax.set_xlim(0, 3)
100100
ax.imshow(Z, extent=[0, 1, 0, 1])
101101
ax.imshow(Z[::-1], extent=[2, 3, 0, 1])
102-
<<<<<<< HEAD
103102
plt.rcParams['image.combine_images'] = True
104103
with PdfPages(io.BytesIO()) as pdf:
105104
fig.savefig(pdf, format="pdf")
106105
assert len(pdf._file.images.keys()) == 1
107106
plt.rcParams['image.combine_images'] = False
108-
=======
109-
plt.rcParams['vector_backends.combine_images'] = True
110-
with PdfPages(io.BytesIO()) as pdf:
111-
fig.savefig(pdf, format="pdf")
112-
assert len(pdf._file.images.keys()) == 1
113-
plt.rcParams['vector_backends.combine_images'] = False
114-
>>>>>>> Added the rcParams 'pdf.combine_images', 'svg.combine_images', and
115107
with PdfPages(io.BytesIO()) as pdf:
116108
fig.savefig(pdf, format="pdf")
117109
assert len(pdf._file.images.keys()) == 2

lib/matplotlib/tests/test_backend_ps.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,13 @@ def test_combine_images():
9797
ax.set_xlim(0, 3)
9898
ax.imshow(Z, extent=[0, 1, 0, 1])
9999
ax.imshow(Z[::-1], extent=[2, 3, 0, 1])
100-
<<<<<<< HEAD
101100
plt.rcParams['image.combine_images'] = True
102-
=======
103-
plt.rcParams['vector_backends.combine_images'] = True
104-
>>>>>>> Added the rcParams 'pdf.combine_images', 'svg.combine_images', and
105101
with io.BytesIO() as ps:
106102
fig.savefig(ps, format="ps")
107103
ps.seek(0)
108104
buff = ps.read()
109105
assert buff.count(six.b(' colorimage')) == 1
110-
<<<<<<< HEAD
111106
plt.rcParams['image.combine_images'] = False
112-
=======
113-
plt.rcParams['vector_backends.combine_images'] = False
114-
>>>>>>> Added the rcParams 'pdf.combine_images', 'svg.combine_images', and
115107
with io.BytesIO() as ps:
116108
fig.savefig(ps, format="ps")
117109
ps.seek(0)

lib/matplotlib/tests/test_backend_svg.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,13 @@ def test_combine_images():
6666
ax.set_xlim(0, 3)
6767
ax.imshow(Z, extent=[0, 1, 0, 1])
6868
ax.imshow(Z[::-1], extent=[2, 3, 0, 1])
69-
<<<<<<< HEAD
7069
plt.rcParams['image.combine_images'] = True
71-
=======
72-
plt.rcParams['vector_backends.combine_images'] = True
73-
>>>>>>> Added the rcParams 'pdf.combine_images', 'svg.combine_images', and
7470
with BytesIO() as svg:
7571
fig.savefig(svg, format="svg")
7672
svg.seek(0)
7773
buff = svg.read()
7874
assert buff.count(six.b('<image ')) == 1
79-
<<<<<<< HEAD
8075
plt.rcParams['image.combine_images'] = False
81-
=======
82-
plt.rcParams['vector_backends.combine_images'] = False
83-
>>>>>>> Added the rcParams 'pdf.combine_images', 'svg.combine_images', and
8476
with BytesIO() as svg:
8577
fig.savefig(svg, format="svg")
8678
svg.seek(0)

0 commit comments

Comments
 (0)