Accepted answer

it is hard to say without seeing the code of your draw function, but I guess that the explanation is that you are creating new axis() objects each time you call draw, instead of reusing the existing ones. be sure that you keep references to your axis objects. create them once, and in your draw function reuse those instances.

Related Query

More Query from same tag