Checking Aggro trading availability…
Index
797
Pallet
coolwarm
Seed
20625000
Src Code
plt.savefig(fn, bbox_inches='tight', pad_inches=0)
Src Code
ax3.set_aspect('equal')
Src Code
ax3.set_axis_off()
Src Code
col = max(0, std * int(ndx % stp) -1)
Unlisted. Open offers stay live for the current owner.
No offers on this asset yet.
No recorded market activity yet.
No activity match.
Src Code
col, row = ndx2cl(ndx, tside, pside)
Src Code
fig3, ax3 = plt.subplots()
Src Code
g = vecs[h%4]
Src Code
if fn:
Src Code
jtr = 1/(tside*ijm)
Src Code
l = lambda a,b,x: a + x * (b-a)
Src Code
lin = np.linspace(0,res,pside,endpoint=False)
Src Code
mesh3 = tri.Triangulation(x, y)
Src Code
n00 = grad(p[p[xi]+yi],xf,yf)
Src Code
n01 = grad(p[p[xi]+yi+1],xf,yf-1)
Src Code
n10 = grad(p[p[xi+1]+yi],xf-1,yf)
Src Code
n11 = grad(p[p[xi+1]+yi+1],xf-1,yf-1)
Src Code
p = np.arange(256,dtype=int)
Src Code
p = np.stack([p,p]).flatten()
Src Code
plt.close('all')
Src Code
plt.margins(0,0)
Src Code
plt.rcParams['figure.figsize'] = [scale, scale]
Src Code
pside, _ = panel_zmap.shape
Src Code
rand = rng.random
Src Code
return (col, row)
Src Code
return g[:,:,0] * x + g[:,:,1] * y
Src Code
return l(x1,x2,s(yf))
Src Code
return mesh3, zmap
Src Code
return p
Src Code
rng = np.random.default_rng(rng_seed + 541*ndx)
Src Code
rng.shuffle(p)
Src Code
row = max(0, std * int(ndx / stp) -1)
Src Code
s = lambda t: t*t*t*(t*(t*6 - 15) + 10)
Src Code
std = int(tside / 2)
Src Code
stp = int((pside - tside) / std)
Src Code
tpc = ax3.tripcolor(mesh,zmap,cmap=pal,edgecolors='face')
Src Code
vecs = np.array([[0,1],[0,-1],[1,0],[-1,0]])
Src Code
x = (xy[0]/tside + xj3).flatten()
Src Code
x,y = np.meshgrid(lin,lin)
Src Code
x1 = l(n00,n10,s(xf))
Src Code
x2 = l(n01,n11,s(xf))
Src Code
xf = x - xi
Src Code
xi = x.astype(int)
Src Code
xj1 = (rand((tside-2, tside-2)) - 0.5)*jtr
Src Code
xj2 = np.c_[ np.zeros(tside-2), xj1, np.zeros(tside-2) ]
Src Code
xj3 = np.r_[ [np.zeros(tside)], xj2, [np.zeros(tside)] ]
Src Code
xy = np.mgrid[0:tside, 0:tside]
Src Code
y = (xy[1]/tside + yj3).flatten()
Src Code
yf = y - yi
Src Code
yi = y.astype(int)
Src Code
yj1 = (rand((tside-2, tside-2)) - 0.5)*jtr
Src Code
yj2 = np.c_[ np.zeros(tside-2), yj1, np.zeros(tside-2) ]
Src Code
yj3 = np.r_[ [np.zeros(tside)], yj2, [np.zeros(tside)] ]
Src Code
zmap = panel_zmap[col:col+tside, row:row+tside]
Src Code
def gen_tmesh(rng_seed, panel_zmap, tside, ndx, ijm):
Src Code
def gnz(p, pside, res):
Src Code
def grad(h,x,y):
Src Code
def ndx2cl(ndx, tside, pside):
Src Code
def perms(rng):
Src Code
def rndr(mesh, zmap, pal, scale, fn = None):
Src Code
import matplotlib.pyplot as plt
Src Code
import matplotlib.tri as tri
Src Code
import numpy as np
Src Code
mesh3, zmap = gen_tmesh(20625000, pz, 16, 797, ijm=4)
Src Code
np.random.seed(seed)
Src Code
pz = gnz(perms(np.random), 16*16, 4*16)
Src Code
rndr(mesh3, zmap.flatten(), 'coolwarm', scale=12, fn='img.png')