[Matplotlib-users] [ANN] EuroPython 2010 registration and talk submissions now open!

2010-03-16 Thread Ciarán Mooney
EuroPython 2010 - 17th to 24th July 2010 EuroPython is a conference for the Python programming language community, including the Django, Zope and Plone communities. It is aimed at everyone in the Python community, of all skill levels, both users and programm

[Matplotlib-users] Using colourmap from matplotlib

2010-03-18 Thread Ciarán Mooney
Hi, I am trying to create an image from an array using PIL, numpy and a colourmap from matplotlib. I got the colourmap by using ipython and the following code colourmap = [] for i in xrange(256): r,g,b,a = cm.jet(i) r = int(round((r * 255),0)) g = int(round((g * 255),0)) b = int(

Re: [Matplotlib-users] Using colourmap from matplotlib

2010-03-20 Thread Ciarán Mooney
Hi, > I haven't tried it, but maybe it's to do with the fact that you're > quantising the colourmap to 256 values; I think matplotlib computes the > exact rgb values using interpolation. If the only reason you're using > PIL is to get a .bmp file, maybe you could save the file straight from > matp

[Matplotlib-users] Importing Null data points

2009-04-07 Thread Ciarán Mooney
Hi, I have an ASCII data set, which includes null data points. eg 1 x1 y1 z1 2 x2 y2 z2 3 x3 y3 z3 4 y3 z3 5 y4 z4 6 y5 I am using ipython with pylab enabled, and the load("/xxx/xxx") function. However it chokes on the blank, "null", values. How can I get this data set into matplo

[Matplotlib-users] Changing axis units, with imshow()

2009-04-09 Thread Ciarán Mooney
Hi, I am trying to plot an image with matplotlib and change the default axis units. Using the cookbook recipe (import image with PIL, and use imshow() ). I am able to get matplotlib to display the image, but the axis are just the x and y pixel numbers. I'd like to convert them to something else.