Merge pull request #3032 from daschw/gr-heatmap
fix heatmap with x and y specifying edges in gr
This commit is contained in:
commit
63e73bc9f0
@ -1537,7 +1537,8 @@ 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))
|
# `z` is already transposed, so we need to reverse before passing its size.
|
||||||
|
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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user