Difference between revisions of "Grid plot.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Sync syntax/arguments/outputs with current Spinach source)
(Restore pre-bulk-edit wiki content)
Line 1: Line 1:
 
{{DISPLAYTITLE:grid_plot.m}} __NOTOC__
 
{{DISPLAYTITLE:grid_plot.m}} __NOTOC__
−
 
 
Spherical quadrature grid plotter. Takes a cloud of points on a sphere and plots its Voronoi tessellation.
 
Spherical quadrature grid plotter. Takes a cloud of points on a sphere and plots its Voronoi tessellation.
  
 
==Syntax==
 
==Syntax==
  
−
grid_plot(x,y,z,vorn,c,options)
+
    grid_plot(x,y,z,vorn
  
 
==Arguments==
 
==Arguments==
  
−
x,y,z  - column vectors containing Cartesian
+
  x,y,z  - column vectors containing Cartesian  
 
             coordinates of grid points
 
             coordinates of grid points
−
 
+
−
  c      - values to be mapped into the colour
+
   vorn  - Voronoi tessellation; if this is not  
−
            of each tessellation face, white if
 
−
            this input is left empty
 
−
 
 
−
   vorn  - Voronoi tessellation; if this is not
 
 
             provided, it will be computed
 
             provided, it will be computed
−
 
−
  options.dots - the default (true) puts black
 
−
                  dots at centres of tessellati-
 
−
                  on faces
 
  
 
==Outputs==
 
==Outputs==
  
−
this function plots a figure
+
  this function plots a figure
  
 
==Examples==
 
==Examples==
−
 
 
Below is the Voronoi polyhedra diagram returned by grid_igloo(20).
 
Below is the Voronoi polyhedra diagram returned by grid_igloo(20).
  
Line 34: Line 24:
  
 
==See also==
 
==See also==
−
 
 
[[Kernel_utilities#Integration_grids|Integration grids]], [[Appendix I: powder grids]]
 
[[Kernel_utilities#Integration_grids|Integration grids]], [[Appendix I: powder grids]]
  
  
 
''Version 2.6, authors: [[Ilya Kuprov]]''
 
''Version 2.6, authors: [[Ilya Kuprov]]''

Revision as of 15:48, 5 April 2026

Spherical quadrature grid plotter. Takes a cloud of points on a sphere and plots its Voronoi tessellation.

Syntax

    grid_plot(x,y,z,vorn

Arguments

  x,y,z  - column vectors containing Cartesian 
           coordinates of grid points

  vorn   - Voronoi tessellation; if this is not 
           provided, it will be computed

Outputs

  this function plots a figure

Examples

Below is the Voronoi polyhedra diagram returned by grid_igloo(20).

Igloo 20.png

See also

Integration grids, Appendix I: powder grids


Version 2.6, authors: Ilya Kuprov