Skip to content

How to best use plotter.clear()? #643

Answered by marcomusy
gheylam asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for reporting this, can you tell me on which operating system you observe these different behaviours?
What vedo/vtk versions are you using? (type vedo --info)

You made a good point that the clear() method should not get rid of the buttons! I'll try to see if I can fix that.
In any case it should not be necessary to use clear. In this example you can create the Axes manually and treat them like any other vedo object in the scene.

from vedo import *

vedo_plt = Plotter(interactive=False)

# Create points
x_pt = Point([1, 0, 0], c='o5', r=20)
y_pt = Point([0, 1, 0], c='g5', r=20)
z_pt = Point([0, 0, 1], c='r5', r=20)

# operation + creates an Assembly object, but you can also
# explic…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@gheylam
Comment options

@marcomusy
Comment options

Answer selected by gheylam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants