How to plot two values as a histogram using Python script?
Question: I have to plot two length of the values in histogram using python script.

    
    
     File=[1,2,3] 
     File1=[3,4,5,6] 
     files=len(File) 
     files1=len(File1)
    

I want to plot the length of the values . The files and files 1 in x axis. The
y- axis need to have the count like 0,10,20....

Like the below diagram using python script i need [![enter image description
here](http://i.stack.imgur.com/n0bBW.png)](http://i.stack.imgur.com/n0bBW.png)
Thanks in Advance


Answer: I guess you want a [bar
plot](http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.bar) like
this:

    
    
    import matplotlib.pyplot as plt
    
    plt.bar([0, 1], [files, files1])
    plt.show()
    

Check out the [matplotlib examples](http://matplotlib.org/1.4.1/gallery.html)
if you want to find out how to format and change labels, axis limits, etc.

[![results](http://i.stack.imgur.com/okxWx.png)](http://i.stack.imgur.com/okxWx.png)

