Forcite, density or energy output during script run

Hi all,

I was running the Tg calculation script that was posted in the discussion before. It generated many trajectory files (.xtd and xsd). The part of the script which seems to run the actual forcite looks like below:

-----------------

\$forcite->ChangeSettings([ Pressure   => \$equilibrationPressure,

      Temperature   => \$temperature,

      InitialVelocities  => "Current",

      NumberOfSteps   => \$equilibrationSteps,

                             TrajectoryFrequency  =>  \$equilibrationFrameEvery,

                             Quality  => "Coarse"

                             ]);

  eval {\$firstCycle  = \$forcite->Dynamics->Run(\$doc)};

------------------

Here's my question.  When I run forcite dynamics or discover dynamics, I saw a density vs frame or energy vs fram plots being generated automatically. Why is this plot now generated in the above script? And how can I generate these plots during the script run?  Or can I generate this plot easily from the trajectory files?

Thank you very much,