How to plot an irregular geometry contour or heatmap using Makie? #2557
crazyfireji
started this conversation in
General
Replies: 1 comment
-
use surface, this issue has been resolved |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I plot a contour or heatmap, the input axies must 1D,but if my geometry is not irregular, the axis must be 2D, but Makie can't plot this irregular geometry contour; like x, y=meshgrid(sin[1:10],1:10) in Pyplot or matlab.
such as:
x = zeros(10, 10); y = zeros(10,10); z = rand(10,10)
for i in 1:10, j in 1:10
x[i, j] = i
y[i, j] = sin(0.1*i)*j
end
heatmap(x,y,z) or contour(x,y,z), it cant work, but can work in PyPlot.contour(x,y,z).
it may plot using tricontour(vec(x), vec(y), vec(z)), but if the data is big, it works so slow and will appear some error
Beta Was this translation helpful? Give feedback.
All reactions