prysm.conf#

Configuration for this instance of prysm.

class prysm.conf.Config(precision=64, phase_cmap='inferno', image_cmap='Greys_r', lw=3, zorder=3, alpha=1, interpolation='lanczos')#

Bases: object

Global configuration of prysm.

Create a new Config object.

Parameters:
  • precision (int) – 32 or 64, number of bits of precision

  • phase_cmap (str) – colormap used for plotting optical phases

  • image_cmap (str) – colormap used for plotting greyscale images

  • lw (float) – linewidth

  • zorder (int, optional) – zorder used for graphics made with matplotlib

  • alpha (float) – transparency of lines (1=opaque) for graphics made with matplotlib

  • interpolation (str) – interpolation type for 2D plots

property precision_complex#

Precision used for complex array computations.

Returns:

object – precision used for complex arrays

Return type:

numpy.complex64 or numpy.complex128

property precision#

Precision used for computations.

Returns:

object – precision used

Return type:

numpy.float32 or numpy.float64