← Back to team overview

yade-users team mailing list archive

Re: [Question #209690]: how to save the screen (qt.view()) to figures

 

Question #209690 on Yade changed:
https://answers.launchpad.net/yade/+question/209690

    Status: Open => Answered

Klaus Thoeni proposed the following answer:
Hi,

you can change the background color either by using yade's controller -
>Display OpenGLRenderer bgColor

or by using python:

from yade import qt
qtr = qt.Renderer()
qtr.bgColor=[1,1,1]

To get a single figure of the current view just use a screen-shot (print 
screen). If you want to save figures periodically during a simulation you 
should use the SnapshotEngine.

HTH
Klaus 

On Thu, 27 Sep 2012 04:20:59 PM wangxiaoliang wrote:
> New question #209690 on Yade:
> https://answers.launchpad.net/yade/+question/209690
> 
> in Yade, qt.view() will show nice picture of the trixial cell in a window,
> 
> 1)  can I modify the color of background in the view, usually gray, I want
> to change it into white
> 
> 2) How can I save the view into a figure

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.