Skip to content

Commit

Permalink
Return ax object on Text.plot()
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaarsen committed Oct 27, 2021
1 parent edf47c0 commit 8c75972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nltk/text.py
Expand Up @@ -608,7 +608,7 @@ def plot(self, *args):
See documentation for FreqDist.plot()
:seealso: nltk.prob.FreqDist.plot()
"""
self.vocab().plot(*args)
return self.vocab().plot(*args)

def vocab(self):
"""
Expand Down

0 comments on commit 8c75972

Please sign in to comment.