t += trans.point_translation([x,y,0.0]) fluidity_transforms += [t] xs1 = XSection(fluidity, f_args=(np.random.random(FLUIDITY_N),), base_square_y=(-1,0), transforms = fluidity_transforms, clim = (0,1)) xs2 = XSection(fluidity, f_args=(np.random.random(FLUIDITY_N),), base_square_y=(-1,0), transforms = FAULT_TRANSFORMS) xs1.draw() xs2.draw(color=(0.2,0.2,0.2),opacity=0.5) mayavi.mlab.points3d(sta_pos_x,sta_pos_y,0*sta_pos[:,1],scale_factor=10000) xs1.view() coeff = np.random.random(FAULT_N) xs1 = XSection(slip, f_args=(coeff,), base_square_y=(-1,0), transforms = FAULT_TRANSFORMS, clim=(0,1)) xs1.draw() xs1.view() coeff = np.random.random(FLUIDITY_N)