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.

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

‘data’: Autoscale using the data on visible atoms. The range goes from the lowest to the highest<br />

value present on the atoms. If only a few atoms have extreme values, the entire color range may<br />

not be used on the plot, as many values may be averaged on each point in the plot.<br />

‘plot’: Autoscale using the data on the plot. Unlike ‘data’ this guarantees that the entire color<br />

range is used.<br />

min, max: Use the range [min, max]<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 />

log may be an open file or a filename.<br />

set_plot_plane(plane)<br />

Set the plotting plane to xy, xz or yz (default: xy)<br />

set_radii(radii)<br />

Set the atomic radii. Give an array or a single number.<br />

set_red_yellow_colors(reverse=False)<br />

Set colors to Black-Red-Yellow-White (a.k.a. STM colors)<br />

set_rotation(rotation)<br />

Set the rotation angles (in degrees).<br />

update(newatoms=None)<br />

Cause a plot (respecting the interval setting).<br />

update causes a plot to be made. If the interval variable was specified when the plotter was create, it<br />

will only produce a plot with that interval. update takes an optional argument, newatoms, which can<br />

be used to replace the list of atoms with a new one.<br />

7.13 <strong>ASE</strong>-VTK<br />

For <strong>ASE</strong>, the vtk interface consists of Python modules for automatic visualization of positions, bonds, forces and<br />

volume data (e.g. wave functions) from an Atoms object, provided such data is made available by the calculator.<br />

Note: The Python modules in <strong>ASE</strong> are intended to wrap lower-level functionality of the VTK object models<br />

in small and easy-to-comprehend classes. To be able to distinguish between build-in VTK objects and their<br />

wrappers, and because VTK uses the CamelCase naming convention whereas <strong>ASE</strong> uses lower-case cf. our coding<br />

conventions, all variables referring to VTK built-in types are prefixed by vtk_. However, both VTK and wrapper<br />

classes are named according to the standard vtkFooBar.<br />

7.13.1 Representing atoms<br />

class ase.visualize.vtk.atoms.vtkAtoms(atoms, scale=1)<br />

Bases: ase.visualize.vtk.module.vtkModuleAnchor, ase.visualize.vtk.grid.vtkAtomicPositi<br />

Provides fundamental representation for Atoms-specific data in VTK.<br />

7.13. <strong>ASE</strong>-VTK 107

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

Saved successfully!

Ooh no, something went wrong!