Skip to content

Idea for canvas reinitialization: x.reinit() #275

Closed
@lee1043

Description

@lee1043

Currently removeobject works for removing individual object or template, but I was thinking something like below, so everything can be easily removed but keep canvas alive so it can be re-used.

x=vcs.init()
x.plot(d)
x.reinit() ## Clear every objects in the canvas, remaining canvas alive

This would help when creating thousands of plots as @durack1 , @gleckler1 and I do, but memory usage is keep increasing because of user missed erase some of vcs object. @doutriaux1 What do you think?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions