Skip to content

Calling a plot from an interactive plot #1217

Answered by marcomusy
baba-yaga asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @baba-yaga dealing with opening and closing windows has always been an headache for me in vtk.
I would first have a look at these options, maybe you will find something that fits your needs:

examples/advanced/multi_viewer2.py
examples/basic/multirenderers.py
examples/basic/multiwindows1.py
examples/basic/multiwindows2.py  # this behaves differently in OSX

Or something like this:

from vedo import *


class CubeViewer:
    def __init__(self, msh, cam_positions):
        self.mesh = msh.pickable(False)
        self.cameras = []
        self.plotter = Plotter(shape=(1, 2), sharecam=False)
        for p in cam_positions:
            self.cameras.append(dict(pos=p))
        self.camera_posi…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by marcomusy
Comment options

You must be logged in to vote
0 replies
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