module plots.pyramid#

Short summary#

module actuariat_python.plots.pyramid

Graphs on population

source on GitHub

Functions#

function

truncated documentation

plot_population_pyramid

create a population pyramid

Documentation#

Graphs on population

source on GitHub

actuariat_python.plots.pyramid.plot_population_pyramid(men, women, ax=None, title='Population Pyramid', xlabel='People', ylabel='Age', labels=('Men', 'Women', 'difference'), **options)#

create a population pyramid

Paramètres:
  • men – men (starting at 0)

  • women – women (starting at 0)

  • ax – existing ax to use or new ax if None

  • title – graph title

  • xlabel – x label

  • ylabel – y label

  • labels – series names

  • options – options to create the graph if ax is None

Renvoie:

ax

source on GitHub