lisc.plts.words.plot_years

lisc.plts.words.plot_years(years, year_range=None, ax=None, **plt_kwargs)[source]

Plot a histogram of the number publications across years.

Parameters
yearscollections.Counter

Data on the number of publications per year.

year_rangelist of [int, int], optional

The range of years to plot on the x-axis, inclusive.

axmatplotlib.Axes, optional

Figure axes upon which to plot.

plt_kwargs

Additional keyword arguments for the plot.

Notes

Publication years are collected together in the ArticlesAll class.

Examples

Plot a histogram of publication years:

>>> from collections import Counter
>>> plot_years(years=Counter({'2018': 25, '2019': 50, '2020':75}))