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

Skip to content

Commit 1c17bb4

Browse files
committed
Fix Python 3 bug in PS backend.
1 parent 9b4e77d commit 1c17bb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def draw_image(self, gc, x, y, im, dx=None, dy=None, transform=None):
469469
im.flipud_out()
470470

471471
h, w, bits, imagecmd = self._get_image_h_w_bits_command(im)
472-
hexlines = '\n'.join(self._hex_lines(bits))
472+
hexlines = b'\n'.join(self._hex_lines(bits)).decode('ascii')
473473

474474
if dx is None:
475475
xscale = w / self.image_magnification

0 commit comments

Comments
 (0)