Move canvas reuse up into the Canvas constructor.
This allows us to reuse the canvas elements without having to retain the rest of the Canvas object, which should really be reset when the plot is reconstructed. It's also a little simpler, and the Canvas constructor just feels like the right place for this code.
Showing
Please
register
or
sign in
to comment