Merge pull request #1899 from daschw/pyplot-image

fix grayscale image in pyplot
This commit is contained in:
Daniel Schwabeneder 2019-01-22 13:55:43 +01:00 committed by GitHub
commit c21e133e69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -667,7 +667,7 @@ function py_add_series(plt::Plot{PyPlotBackend}, series::Series)
end
handle = ax[:imshow](z;
zorder = series[:series_plotindex],
cmap = py_colormap([:black, :white]),
cmap = py_colormap(cgrad([:black, :white])),
vmin = 0.0,
vmax = 1.0,
extent = (xmin, xmax, ymax, ymin)