How to install pywin32 module in windows 7

Question or problem about Python programming: I am trying to install pywin32. I downloaded it from sourceforge.net. When I run setup.py install it shows “Unable to find vcvarsall.bat”. I Googled about it and found that I have to install MinGW and set path then run python setup.py build –compiler=mingw32 but it’s showing Can’t find a […]

Continue Reading

How to draw grid lines behind matplotlib bar graph

Question or problem about Python programming: x = [’01-02′, ’02-02′, ’03-02′, ’04-02′, ’05-02′] y = [2, 2, 3, 7, 2] fig, ax = plt.subplots(1, 1) ax.bar(range(len(y)), y, width=0.3,align=’center’,color=’skyblue’) plt.xticks(range(len(y)), x, size=’small’) plt.savefig(‘/home/user/graphimages/foo2.png’) plt.close() I want to draw grid lines (of x & y) behind the bar graph. How to solve the problem: Solution 1: To […]

Continue Reading