JFreeChart BarChart -> NO gradient

The problem lies in the BarPainter you are using. The JFreeChart version 1.0.13 default is to use GradientBarPainter which adds a metallic-ish look to the bar. If you want the “old” look the solution is to use the StandardBarPainter. final CategoryPlot plot = chart.getCategoryPlot(); ((BarRenderer) plot.getRenderer()).setBarPainter(new StandardBarPainter()); That should do it. Alternatively, if you want … Read more

How to change the color of a single bar in a bar plot

Simple, just use .set_color >>> barlist=plt.bar([1,2,3,4], [1,2,3,4]) >>> barlist[0].set_color(‘r’) >>> plt.show() For your new question, not much harder either, just need to find the bar from your axis, an example: >>> f=plt.figure() >>> ax=f.add_subplot(1,1,1) >>> ax.bar([1,2,3,4], [1,2,3,4]) <Container object of 4 artists> >>> ax.get_children() [<matplotlib.axis.XAxis object at 0x6529850>, <matplotlib.axis.YAxis object at 0x78460d0>, <matplotlib.patches.Rectangle object at … Read more