nltk.FreqDist.plot¶
-
FreqDist.
plot
(*args, **kwargs)[source]¶ Plot samples from the frequency distribution displaying the most frequent sample first. If an integer parameter is supplied, stop after this many samples have been plotted. For a cumulative plot, specify cumulative=True. (Requires Matplotlib to be installed.)
Parameters: - title (bool) – The title for the graph
- cumulative – A flag to specify whether the plot is cumulative (default = False)