Plotting

arora.plot.plot_hypnogram

arora.plot.plot_hypnogram(stages, labeldict, title, epochlen, ax, verbose, xlabel, ylabel, **kwargs, )

Parameters:
stageslist of int

An array with different stages annotated as integers

labeldictdict, default is None

An enumeration of labels that correspond to the integers of stages. If labeldict is None then the labels will be chosen based on the min and max of the stages parameter

titlestr, default None

Title of the plot that will appear on the plot. If the title is None then

epochlenint, default is 30

The length of the epoch in this annotation

axmatplotlib.pyplot.axis, default None

The axis in which we plot

verbosebool

Print addtional information

xlabelbool

Display xlabel (‘Time after record start’)

ylabelbool

Display ylabel (‘Sleep Stage’)

kwargs :

Additional arguments passed to plt.plot(), e.g. c=’red’

Returns:

A hypnogram plot

For example:

>>> arora.plot.plot_hypnogram()

arora.plot.plot_distrib_pies

arora.filter.plot_distrib_pies(distrib_dict, sleep_stage_map, pct)

Parameters:
distrib_dictdict

Dictionary of the scoring of signal data

sleep_stage_mapdict

An enumeration of labels that correspond to the integers of stages.

pctbool, default False

If True, displays the percentage of the pie. Default value is False.

Returns:

Pies that show the distribution of scoring of scorers