fix heatmap with x and y specifying edges in gr

This commit is contained in:
Daniel Schwabeneder 2020-10-04 14:56:41 +02:00
parent 23b852da8f
commit 729219f5a0

View File

@ -1537,7 +1537,7 @@ function gr_add_series(sp, series)
dmin, dmax = GR.gr3.volume(y.v, 0) dmin, dmax = GR.gr3.volume(y.v, 0)
elseif st in (:heatmap, :image) elseif st in (:heatmap, :image)
if !ispolar(series) if !ispolar(series)
x, y = heatmap_edges(x, xscale, y, yscale, size(z)) x, y = heatmap_edges(x, xscale, y, yscale, reverse(size(z)))
end end
if st === :heatmap if st === :heatmap
gr_draw_heatmap(series, x, y, z, clims) gr_draw_heatmap(series, x, y, z, clims)