You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that origin and spacing are not taken into account when plotting things onto grids.
(not-so-M)WE:
using Plots
origin = (-100.0, -200.0)
spacing = (5.0, 5.0)
X = origin[1]:100
Y = origin[2]:200
Z = [10sin(x/10) + y for x in X, y in Y]
plt1 =heatmap(X,Y,Z')
using GeoStats
Ω =RegularGridData{Float64}(OrderedDict(:Z=>Z))
RegularGridData(OrderedDict(:Z=>Z), origin .+1000, spacing)
plt2 =plot(Ω)
plot(plt1, plt2, layout=(2,1))
I was expecting the bottom plot to show the shifted origin and (5.0,5.0) spacing, but it does not?
The text was updated successfully, but these errors were encountered:
It seems that
origin
andspacing
are not taken into account when plotting things onto grids.(not-so-M)WE:
I was expecting the bottom plot to show the shifted origin and
(5.0,5.0)
spacing, but it does not?The text was updated successfully, but these errors were encountered: