We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1320da4 commit 2c1e96bCopy full SHA for 2c1e96b
tikzplotlib/_image.py
@@ -36,7 +36,7 @@ def draw_image(data, obj):
36
# Convert mpl image to PIL
37
if img_array.dtype != numpy.uint8:
38
img_array = numpy.uint8(img_array * 255)
39
- image = PIL.Image.fromarray(numpy.uint8(img_array * 255))
+ image = PIL.Image.fromarray(img_array)
40
41
# If the input image is PIL:
42
# image = PIL.Image.fromarray(img_array)
0 commit comments