enlp.visualisation.freq_distribution.dist_plot

enlp.visualisation.freq_distribution.dist_plot(word_counts, log=False, shade_singles=True, shade_top25=True, ax=None)[source]

Frequency count of tokens

Parameters
word_countslist

sorted list of words and their respective frequency, can be obtained from nlp_distributions.count()

logbool

make y axis logarithmic [optional, default = False]

shade_singlesbool

shade area on graph where token counts are 1 [optional, default = True]

shade_top25bool

shade area on graph where tokens count for top quarter of tokens [optional, default = True]

axmatplotlib.axes.Axis

Axis object for figure

Returns
figmatplotlib.figure.Figure

Figure object line plot of word counts

axmatplotlib.axes.Axis

Axis object for figure