Merge pull request #2226 from nlw0/nlw0-patch-1

Image extent half-pixel margin in pyplot
This commit is contained in:
Daniel Schwabeneder 2019-10-22 08:59:33 +02:00 committed by GitHub
commit 978f00bbb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -756,7 +756,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
cmap = py_colormap(cgrad([:black, :white])), cmap = py_colormap(cgrad([:black, :white])),
vmin = 0.0, vmin = 0.0,
vmax = 1.0, vmax = 1.0,
extent = (xmin, xmax, ymax, ymin) extent = (xmin-0.5, xmax+0.5, ymax+0.5, ymin-0.5)
) )
push!(handles, handle) push!(handles, handle)