Matplotlib is a Python library for turning computed data into clear graphs. A small word-frequency program uses it to display the most common words in a text file as a bar chart. section 2.5.3
Plot the top 20 words
The workflow cleans and tokenizes text, counts each word, sorts the counts, and passes the result to plot_word_count. The function creates a bar chart, labels the axes, rotates word labels, adds a title, and displays the top 20 words. Running `pip install matplotlib tk` followed by `python main.py` produces the graph. section 2.5.3



