sphstat.plotting module

Functions for plotting data

sphstat.plotting.plotdata(sample: dict, proj: str = 'mollweide', mflag: bool = False) bool[source]

Plot a sample represented in polar (colat, long) format in Mollweide projection

Parameters
  • sample (dict) – Sample in rad format (polar)

  • proj (str) – Projection type (either ‘mollweide’ or ‘lambert’)

  • mflag (bool) – Flag to plot the median and the 95% cone of confidence

Returns

bool (True)

sphstat.plotting.plotdatalist(samplelist: list, labels: Optional[list] = None, proj: str = 'mollweide', mflag: bool = False) bool[source]

Superimposed plot of a list of samples

Parameters
  • samplelist (list) – List containing multiple samples

  • labels (list) – List of (string) labels e.g. [‘A’, ‘B’]

  • proj (str) – Projection type (either ‘mollweide’ or ‘lambert’)

  • mflag (bool) – Flag to plot the median and the 95% cone of confidence

Returns

Return True when completed

Return type

bool

sphstat.plotting.plotmapping(input: list)[source]

Utility function to map an angle in [0, 2 * pi] to [-pi, pi]

Parameters

input (list) – Input angle in [0, 2 * pi] in radians to map to [-pi, pi]

Returns

Mapped angle in radians

Return type

float