Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposes a 3D quiver #3134

Merged
merged 12 commits into from
Nov 13, 2020
Prev Previous commit
Next Next commit
fix limits in GR image
  • Loading branch information
daschw committed Nov 13, 2020
commit 5d26068eaec64b71795122775a75dfb226649039
10 changes: 4 additions & 6 deletions src/backends/gr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down