Clearing 3D plots plotted in figure canvas

I am creating a PyQT based tool. that has a Figure canvas embedded in it.

I want to update the plot on some event. I can draw the plot perfectly.
But how do I clear the plot without removing the mouse movement capabilities.

axes.cla, fixes the axis movement as well.

Just took a look at the cla() method in mplot3d and it seems that the original author of the module put in a call to disable all user interaction when ax.cla() is called. I find this to be very odd and undesirable. I suspect that it was needed when the module was originally done, but I don’t think that is the case anymore.

Unless someone can tell me the reason for disabling mouse interaction for mplot3d axes, I will submit a bug fix.

Ben Root

···

On Thu, Mar 8, 2012 at 4:02 PM, Sourabh Bajaj <sourabhbajaj90@…287…> wrote:

I am creating a PyQT based tool. that has a Figure canvas embedded in it.

I want to update the plot on some event. I can draw the plot perfectly.

But how do I clear the plot without removing the mouse movement

capabilities.

axes.cla, fixes the axis movement as well.