This exercise was from the book: Starting Out with Python, 5th Edition by Tony Gaddis.
The original solution does not require a matplotlib but I added the module to chart the characters and the times they appeared in the word entered by a user. All data are dynamically generated based on that input.
You may see the code from my GitHub Repo.