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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
<strong>ASE</strong> <strong>Manual</strong>, <strong>Release</strong> 3.6.1.2828<br />
log may be an open file or a filename.<br />
set_radii(radii)<br />
Set the atomic radii. Give an array or a single number.<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.12.3 FieldPlotter<br />
The FieldPlotter is intended to plot fields defined on the atoms in large-scale simulations. The fields could be e.g.<br />
pressure, stress or temperature (kinetic energy), i.e. any quantity that in a given simulation is best defined on a<br />
per-atom basis, but is best interpreted as a continuum field.<br />
The current version of FieldPlotter only works if the number of atoms is at least 5-10 times larger than the number<br />
of pixels in the plot.<br />
class ase.visualize.fieldplotter.FieldPlotter(atoms, datasource=None, verbose=0,<br />
timing=0, interval=1, initframe=0)<br />
log(message)<br />
logs a message to the file set by set_log.<br />
plot(data=None)<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 />
If data is specified, it must be an array of numbers with the same length as the atoms. That data will<br />
then be plotted. If no data is given, the data source specified when creating the plotter is used.<br />
set_background(value)<br />
Set the data value of the background. See also set_background_color<br />
Set the value of the background (parts of the plot without atoms) to a specific value, or to ‘min’ or<br />
‘max’ representing the minimal or maximal data values on the atoms.<br />
Calling set_background cancels previous calls to set_background_color.<br />
set_background_color(color)<br />
Set the background color. See also set_background.<br />
Set the background color. Use a single value in the range [0, 1[ for gray values, or a tuple of three such<br />
values as an RGB color.<br />
Calling set_background_color cancels previous calls to set_background.<br />
set_black_white_colors(reverse=False)<br />
Set the color to Black-White (greyscale)<br />
set_color_function(colors)<br />
Set a color function, to be used to color the atoms.<br />
set_data_range(range1, range2=None)<br />
Set the range of the data used when coloring.<br />
This function sets the range of data values mapped unto colors in the final plot.<br />
Three possibilities:<br />
106 Chapter 7. Documentation for modules in <strong>ASE</strong>