Change mlab quiver3d & surf data sources without clearing figure in traits script
问题 I have a Traits and Mayavi script that presents an mlab scene and several traits editors. The editors affect what data is shown in a surface , quiver3d and legend (Scalar LUT Manager) by calling my drawing method. Each change triggers a clear figure and re-draw. Learning from the Mlab interactive dialog example the plot3d * uses mlab_source.set to change the data without clearing the figure and re-drawing. In update_plot(): if self.plot is None: self.plot = self.scene.mlab.plot3d(x, y, z, t,