Hye I was trying to use matplotlib for interpreting data using bargraph on centos 6.5 with python 2.6.6 With this code
#!/usr/bin/python
import matplotlib.pyplot as plt
x=[1,2,3]
y=[3,4,5]
plt.bar(x,y,label='Bars1')
plt.xlabel('x')
plt.ylabel('y')
plt.title("abc")
plt.legend()
plt.show()
I have made this script executable via chmod +x plothisto.py
in terminal
but when I run this using ./ plothisto.py
it just executes and displays nothing..and ends in terminal itself can someone help me know the problem and reason and correction required.