Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 paraview 中,我可以从 python 终端保存图片,例如:
WriteImage('pic.png')
...但是有谁知道如何以定义的大小(如 1600 x 1000 像素)保存图形?
我正在使用 ParaView 4.1.0
谢谢!
图片的大小是基于视图的大小,所以你只需要改变视图的大小如下:
view = GetRenderView() view.ViewSize = [1600,1000] WriteImage('pic.png')