# Name

sxplot_projs_distrib - plot distribution of projections

# Usage

*Usage in command lines*

sxplot_projs_distrib projection output_plot

*Usage in python programming*

plot_projs_distrib(projection, output_plot)

*Example*

sxplot_projs_distrib.py proj_15.hdf plot_agls.hdf

or

sxplot_projs_distrib.py angles.txt plot_agls.hdf --wn=1024

## Input

- projection
the input stack of projections, each projection must contain its angles in the parameters xform.projection. Alternatively, if extension is

**txt**, input is a text file with the first two columns containing angles phi and theta, respectively.- wn
- output image size (default 256)

## Output

- output_plot
- name of the output image

# Description

sxplot_projs_distrib will read the angles (phi, theta, psi) for each projection from their headers (attribute xfrom.projection). Each Eulerian angle of projection will be mapped on a hemisphere in order to store the distribution in a 2D image. All angles with theta>180.0 will be mirror-transformed and mapped to the top hemisphere.

The origin angles (0 value) on the map: phi origin is the same for the trigonometric circle with a radius = 1 (alpha = 0) ; theta origin is the top of the sphere, so it is the center of the map ; psi is irrelevant.

# Author / Maintainer

Julien Bert

# Keywords

- category 1
- APPLICATIONS

# Files

applications.py

# Maturity

- beta
- works for author, often works for others.

# Bugs

None. It is perfect.