Using negative values in a bar plot

bar-chart, matplotlib, python

Solution

I change the `y` axis scale by the following command:

plt.ylim([-81,81])

which will set the `y` axis scale from -81 to 81

for the `x` scale axis that would be

plt.xlim([ xmin,xmax])

Problem

Starting with this example, I would like to do something very similar but being able to use negative values for variables in the code, for example; ``` menMeans = (-20, 35, -30, 35, -27) womenMeans = (25, -32, 34, -20, 25) ``` , although this has nothing to do with the men/women meaning. But when I do this, I can not see anything related with negative values in the plot. I also change Y scale; ``` plt.yticks(np.arange(-81,81,10)) ``` but nothing. Any hints?

Original source