[Matplotlib-users] Axes Pie chart wrong legend colors

2009-01-26 Thread AlsCdz
I have the following code: ax1.pie(fracs, explode=explode, labels=labels, autopct='%1.1f%%', shadow=True, pctdistance=0.9, labeldistance=1.1,) ax1.legend(labels, loc=0, shadow=True, prop = smallfont) And the chart: http://www.nabble.com/file/p21667217/C3_Pie__count_daysInWeek_2009-01-26_16.13.4

[Matplotlib-users] Background color of the entire image..

2009-01-25 Thread AlsCdz
Hello, is there any way to color the entire image. Not just in a way: http://matplotlib.sourceforge.net/examples/pylab_examples/color_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/color_demo.html All the white part around the chart. Is it possible to change that color as we

[Matplotlib-users] Integer to colormap color value

2009-01-08 Thread AlsCdz
I have something like (only the important bits of code): cmap = mpl.cm.jet ##I set colomap to 'jet' norm = mpl.colors.Normalize(vmin=5, vmax=15) exampleInt = 7 ##Here i would need a color value of 7 (in 5-15 range of jet colormap) poly = Polygon(seg,facecolor=exampleInt(as

[Matplotlib-users] int to matplotlib.colormaps value

2008-12-16 Thread AlsCdz
Hello, i need you help! I want to draw a plot with circles, which are coloured according to size. So let's say we have a list=[1,3,5,7] that would give me four circles, first very small, second bigger and so on. Now i need a way to "convert" integers to color value which would match matplotlib.cm