As a result of the previous code, I have two lists.
How can I make a plot with letters from "lab" (one by one) on the X-axis, and corresponding numbers from list val
- on the Y axis?
I tried:
lab = ['a', 'b', 'c', 'a', 'b', 'c']
val = [1, 2, 4, 1, 2, 4]
from matplotlib import pyplot as plt
plt.bar(lab, val)
It plots each letter only once.
And I want it to plot the whole sequence letter by letter.