for tick in colorbar_ax.yaxis.get_ticklines(): tick.set_color('white') for tick in colorbar_ax.xaxis.get_ticklines(): tick.set_visible(False) # Show the RGB images prev = None for i in range(N): # Blend the RGB images image_total = images_temp[i] * 1.50 + images_dens[i] * 0.33 bitmap = write_bitmap(image_total, 'dens_temp_{0:03d}.png'.format(i + 1), max_val=0.0085, transpose=True) # Remove alpha bitmap = bitmap[:, :, :3] if prev is None: prev = ax.imshow(bitmap) else: prev.set_data(bitmap) fig.savefig('output/frame_{0:03d}.png'.format(i + 1), facecolor=fig.get_facecolor(), edgecolor='none', bbox_inches='tight') fig.savefig('output/frame_{0:03d}.pdf'.format(i + 1), facecolor=fig.get_facecolor(),
fields=['temperature'], log_fields=[False], no_ghost=True, north_vector = [0., 1., 0.]) cam_11 = pf.h.camera(c, L, W, N, tf_11, fields=['temprature_1'], log_fields=[False], no_ghost=True, north_vector = [0., 1., 0.]) # Set up layers tf_c18o.add_layers(10, 0.003, colormap='RdBu_r') #was 10, .0001 tf_11.add_layers(18, .003, colormap = 'Reds') # Produce snapshot N = 36*4 images_c18o = [] for i, snapshot in enumerate(cam_c18o.rotation(2*np.pi, N, clip_ratio = 8.0, rot_vector = [0., 1., 0.])): images_c18o.append(cam_c18o.snapshot()) images_11 = [] for i, snapshot in enumerate(cam_11.rotation(2*np.pi, N, clip_ratio = 8.0, rot_vecotr = [0., 1., 0.])): images_11.append(cam_11.snapshot()) for i in range(N): image_total = images_c18o[i]*3. + images_11[i]*1.5 image_total.write_png('c18o_ammonia11_{0:03d}.png'.format(i+1)) #Write bitmap ##ERROR## write_bitmap(im_c18o, 'test_c18o_bitmap.png', transpose = True)
tick.set_color('white') for tick in colorbar_ax.xaxis.get_ticklines(): tick.set_visible(False) # Show the RGB images prev = None for i in range(N): # Blend the RGB images image_total = images_temp[i] * 1.50 + images_dens[i] * 0.33 bitmap = write_bitmap(image_total, 'dens_temp_{0:03d}.png'.format(i + 1), max_val=0.0085, transpose=True) # Remove alpha bitmap = bitmap[:, :, :3] if prev is None: prev = ax.imshow(bitmap) else: prev.set_data(bitmap) fig.savefig('output/frame_{0:03d}.png'.format(i + 1), facecolor=fig.get_facecolor(), edgecolor='none', bbox_inches='tight')