When saving screenshots, some settings don't take effect #325
Unanswered
jromazanov
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Can you see if some |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to make a 3D mesh plot, define a camera rotation in the script, show an interactive window with some adjusted settings (e.g. camera rotation, canvas background color), and finally save a screenshot into
test.png
.This works fine with pyvista's
Plotter
class, but apparently not with pyvistaqt'sBackgroundPlotter
class.Below is a minimal example. If I run with
plotType = 'pv'
, it works fine, the screenshot has the same rotation and background color as the interactive window. But if I run withplotType = 'pvqt'
, the screenshot forgets the camera rotation and always uses the same default rotation.Question: Is there a different way I need to pass the settings and save the screenshot? Or is this a bug?
Expected behavior: (as seen in interactive window)
Actual behavior: (as produced in screenshot)
(Interestingly, other settings are transferred correctly to the pyvistaqt screenshot, e.g.
pl.view_yz()
would take effect in both interactive window and screenshot.)Beta Was this translation helpful? Give feedback.
All reactions