'is there any function to plot an image in bar graph in open cv using python

I have been trying to bar plot the image in open cv

I had got only a 3d projection of the graph but I want the normal graph for the image response...

 I had got only a 3d projection of the graph but I want the normal graph for the image response...


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source