fix limits in GR image
This commit is contained in:
parent
d3315a5dae
commit
32e681d158
@ -1578,16 +1578,14 @@ function gr_add_series(sp, series)
|
||||
sp[:legend] = :none
|
||||
GR.gr3.clear()
|
||||
dmin, dmax = GR.gr3.volume(y.v, 0)
|
||||
elseif st in (:heatmap, :image)
|
||||
elseif st === :heatmap
|
||||
if !ispolar(series)
|
||||
# `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
|
||||
if st === :heatmap
|
||||
gr_draw_heatmap(series, x, y, z, clims)
|
||||
else
|
||||
gr_draw_image(series, x, y, z, clims)
|
||||
end
|
||||
gr_draw_heatmap(series, x, y, z, clims)
|
||||
elseif st === :image
|
||||
gr_draw_image(series, x, y, z, clims)
|
||||
end
|
||||
|
||||
# this is all we need to add the series_annotations text
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user