-
Notifications
You must be signed in to change notification settings - Fork 265
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
Export high quality figures? #57
Comments
Hi Hakam, from vtkplotter import settings
settings.screeshotScale = 2 # integer factor
# ...
screenshot() you can also increase the vp = Plotter(size=(1500,1500)) Hope this helps |
this seems related to a bad behavior of the from vtkplotter import *
s = Sphere().wireframe()
plt = s.show(axes=1, bg='w', interactive=False) # return Plotter obj
import vtk
renderLarge = vtk.vtkRenderLargeImage()
renderLarge.SetInput(plt.renderer)
renderLarge.SetMagnification(3)
renderLarge.Update()
write(renderLarge.GetOutput(), 'screenshot.png')
interactive() let me know if this works for you! |
this solution works for the original camera view, which is defined in (plt in the code). But it helps a lot now, thank so much |
@marcomusy Regards |
Thanks @s1291 if i understand correctly this is only applicable to exporting |
Unfortunately, right now, I don't know how it is used by Paraview. |
@marcomusy I would be very interested to know if anything comes out about exporting 3D scenes as vector images! |
@vigji this very much depends on the upstream vtk, I'll let you know if anything happens on that front! |
Hallo,
How can I save high quality figures from the rendering window e.g. 300 dpi or more? When I save screenshot even with svg or eps, the quality is not good at all !
Thanks in advanced
Hakam Shams
The text was updated successfully, but these errors were encountered: