Fix axis limits not cropping image.

This commit is contained in:
Andrew Palugniok 2018-01-05 10:51:41 +00:00
parent 7a9a871be3
commit c21f3810b9

View File

@ -1208,7 +1208,7 @@ function gr_display(sp::Subplot{GRBackend}, w, h, viewport_canvas)
round(Int, green(c) * 255) << 8 +
round(Int, red(c) * 255) ), z)
end
GR.drawimage(xmin, xmax, ymax, ymin, w, h, rgba)
GR.drawimage(0, w, h, 0, w, h, rgba)
end
# this is all we need to add the series_annotations text