[Matplotlib-users] Shrink colorbar with AxesGrid and basemap

2014-05-29 Thread Martin De Kauwe
om.rand(150,360) image = m.imshow(diff, cmap=plt.cm.jet, interpolation='nearest') textstr='%s' % (month) props = dict(boxstyle='round', facecolor='white', alpha=1.0, ec="white") ax.text(0.03, 0.1, textstr, transform=ax.transAxes, font

[Matplotlib-users] output pngs to dark?

2009-08-13 Thread Martin De Kauwe
Hi, I have a piece of code which explicitly creates a 3 column array of red, green, blue values which I have scaled. For example RGB = np.array( [ 10, 100, 180 ] ) etc. Anyway, I use "savefig" to ouput it to a png image. The problem is that the PNG looks a lot darker than it should do, in fact if