How do i plot an array in a histogram style using matplotlib.plot() or similar functions?
I also use scikit as a package but im completely new to that one and have not found an alternative there either so far.
The function hist in matplotlib calculates the histogram (e.g. of a picture) and plots it. However, for my assignment i have to calculate the histogram myself as an array of shape (256,), where each index corresponds to a calculated grey-scale value from 0 to 255.
So far i looked at the different parameters of matplotlib.plot() but could not see or figure out a way to plot in a hist style.

bins: int or sequence or str- it takes an array, if that is what you want.