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_counts
list
sorted list of words and their respective frequency, can be obtained from nlp_distributions.count()
- log
bool
make y axis logarithmic [optional, default = False]
- shade_singles
bool
shade area on graph where token counts are 1 [optional, default = True]
- shade_top25
bool
shade area on graph where tokens count for top quarter of tokens [optional, default = True]
- ax
matplotlib.axes.Axis
Axis object for figure
- word_counts
- Returns
- fig
matplotlib.figure.Figure
Figure object line plot of word counts
- ax
matplotlib.axes.Axis
Axis object for figure
- fig