python - Redefining indexing in N-dimensional arrays -
so have n-dimensional array of values, let's call a. now, can plot in contour map, coordinate axes x , y, using
plt.contourf(x,y,a)
now, have carry out mapping of these points plane, so, set of coordinates. let transformation be
x - x1 y - x1
now, each point magnitude "i" in matrix @ (x,y) @ (x- x1, y - y1). can plot using
plt.contourf(x-x1, y-y1,a)
my question is, how index array such obtain array b indexing corresponds x-x1 , y-y1 instead of x , y can plot directly using following
plt.contourf(x,y,b)
thanks!
Comments
Post a Comment