Pyvista: Camera is resetting in add_point_labels

Created on 19 Jun 2020  路  3Comments  路  Source: pyvista/pyvista

add_point_labels is resetting the camera. I fixed the bug including reset_camera=False in self.add_mesh, at line 3106 of plotting.py.

bug

All 3 comments

@rodrigomologni, thanks for point this out - good find!

We do want the camera to reset by default, so I will add reset_camera=None to add_point_labels arguments which we'll pass to that add_mesh call. If you don't want it to reset, then as a user you'll need to pass reset_camera=False.

See #805

@banesullivan I who thank you! :-)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cweickhmann picture cweickhmann  路  5Comments

ljc19800331 picture ljc19800331  路  3Comments

tinebryder picture tinebryder  路  4Comments

deyanimay picture deyanimay  路  5Comments

banesullivan picture banesullivan  路  3Comments