Skip to content

Commit c0559d4

Browse files
authored
Merge pull request #130 from boeddeker/master
Bugfix for image: origin was ignored
2 parents f06b7ed + 9580bcf commit c0559d4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

matplotlib2tikz/image.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ def draw_image(data, obj):
3434
arr=img_array,
3535
cmap=obj.get_cmap(),
3636
vmin=clims[0],
37-
vmax=clims[1]
37+
vmax=clims[1],
38+
origin=obj.origin
3839
)
3940
else:
4041
# RGB (+alpha) information at each point

0 commit comments

Comments
 (0)