Y axis of pyplot turns upside down when using pyplot.ylim.
Is this an expected behavior of PyPlot.jl?
By the way, are the indices of images/matrixes passed to PyPlot.jl converted to 0-origin?
Thank you in advance!!
version
Julia: v1.6.0
PyPlot: v2.9.0
code
using PyPlot, Images
img = rand(20, 20)
img[5, 5] = 255
imshow(img, cmap=plt.cm.gray)
scatter(4, 4, c="r")
# scatter(5, 5, c="r") did not match the point img[5, 5] = 255
savefig("test.png")
imshow(img, cmap=plt.cm.gray)
scatter(4, 4, c="r")
ylim(0, 19)
savefig("test2.png")
output image
-
test.png
-
test2.png