CDAT / vcs

Visualization Control System

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot clear canvas after canvas.interact()

scottwittenburg opened this issue · comments

The interaction buttons remain on the screen after calling x.clear().

$ python
Python 3.6.7 | packaged by conda-forge | (default, Feb 28 2019, 02:16:08) 
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import vcs
>>> x = vcs.init()
>>> x.plot([[1, 2, 3],[3, 2, 1]])
<vcs.displayplot.Dp object at 0x126e626c8>
>>> x.interact()

No go interact, or don't. Either way, type q when you're ready to go back to the terminal and do:

x.clear()

The plot will be cleared except for the buttons.