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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
Plotterclass, but apparently not with pyvistaqt'sBackgroundPlotterclass.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