Re: [Matplotlib-users] Bar plot choose colours

2015-10-28 Thread Joshua Klein
The pandas plot function doesn’t take colors as it does ‘x’ or ‘y’, but it lets you pass color information just as you would with raw matplotlib code, which means you can pass it a sequence of colors which match the length of your sequence of drawn observations. # compute color codes using a terna

[Matplotlib-users] Bar plot choose colours

2015-10-28 Thread questions anon
I have calculated annual temperature anomaly and I would like to plot as a bar plot with all values positive make red and all values negative make blue I am using pandas and the time series data in this example are called 'anomaly' mybarplot=anomaly.plot(kind='bar') the data look like this: tim