Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camera.zoom() not working #10

Open
danieljuschus opened this issue Apr 6, 2023 · 1 comment
Open

Camera.zoom() not working #10

danieljuschus opened this issue Apr 6, 2023 · 1 comment

Comments

@danieljuschus
Copy link

Changing the value in camera.zoom() has no effect.

MWE:

import pyvista as pv
from stpyvista import stpyvista

plotter = pv.Plotter(window_size=[400,400])
mesh = pv.Cube(center=(0,0,0))
plotter.add_mesh(mesh)
plotter.view_isometric()
plotter.camera.zoom(100)
stpyvista(plotter)
@edsaac
Copy link
Owner

edsaac commented Apr 11, 2023

Yes, for some reason panel does no use the camera zoom passed from pyvista. I believe the camera can be controlled with a separate dict as a kwarg of pane.vtk (https://panel.holoviz.org/api/panel.pane.vtk.html#panel.pane.vtk.vtk.AbstractVTK), but I've not tested this yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants