18.11.2012 Views

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

ASE Manual Release 3.6.1.2825 CAMd - CampOS Wiki

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1.All atoms are visible.<br />

<strong>ASE</strong> <strong>Manual</strong>, <strong>Release</strong> 3.6.1.2828<br />

2.If PrimiPlotter.set_invisible() has be used to specify invisible atoms, any atoms for which the value is<br />

non-zero becomes invisible.<br />

3.If an invisiblility function has been set with PrimiPlotter.set_invisibility_function(), it is called with<br />

the atoms as argument. It is expected to return an integer per atom, any non-zero value makes that<br />

atom invisible.<br />

4.If a cut has been specified using set_cut, any atom outside the cut is made invisible.<br />

Note that invisible atoms are still included in the algorithm for positioning and scaling the plot.<br />

The following output devices are implemented.<br />

PostScriptFile(prefix): Create PS files names prefix0000.ps etc.<br />

PnmFile(prefix): Similar, but makes PNM files.<br />

GifFile(prefix): Similar, but makes GIF files.<br />

JpegFile(prefix): Similar, but makes JPEG files.<br />

X11Window(): Show the plot in an X11 window using ghostscript.<br />

Output devices writing to files take an extra optional argument to the constructor, compress, specifying if<br />

the output file should be gzipped. This is not allowed for some (already compressed) file formats.<br />

Instead of a filename prefix, a filename containing a % can be used. In that case the filename is expected to<br />

expand to a real filename when used with the Python string formatting operator (%) with the frame number<br />

as argument. Avoid generating spaces in the file names: use e.g. %03d instead of %3d.<br />

Parameters to the constructor:<br />

atoms: The atoms to be plottet.<br />

verbose = 0: Write progress information to stderr.<br />

timing = 0: Collect timing information.<br />

interval = 1: If specified, a plot is only made every interval’th time update() is called. Deprecated, normally<br />

you should use the interval argument when attaching the plotter to e.g. the dynamics.<br />

initframe = 0: Initial frame number, i.e. the number of the first plot.<br />

log(message)<br />

logs a message to the file set by set_log.<br />

plot()<br />

Create a plot now. Does not respect the interval timer.<br />

This method makes a plot unconditionally. It does not look at the interval variable, nor is this plot<br />

taken into account in the counting done by the update() method if an interval variable was specified.<br />

set_color_function(colors)<br />

Set a color function, to be used to color the atoms.<br />

set_colors(colors)<br />

Explicitly set the colors of the atoms.<br />

set_dimensions(dims)<br />

Set the size of the canvas (a 2-tuple).<br />

set_invisibility_function(invfunc)<br />

Set an invisibility function.<br />

set_invisible(inv)<br />

Choose invisible atoms.<br />

set_log(log)<br />

Sets a file for logging.<br />

7.12. Visualization 105

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!