updating a 3d python plot during a convergence iteration
问题 I try to create a plotting script that plots my data in two 3d structures (with one variable as a color) that I use in a loop in which the data is supposed to converge. I would like to update the figure every iteration, instead of creating a new figure. Any ideas on how I can achieve this? function: import matplotlib.pyplot as plt import numpy as np def colorplot_3D(network, color_variable_1, color_variable_2): net = network X, Y, Z = net['pore.coords'][net.Ps].T X_max, Y_max, Z_max = np.amax