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
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 =
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
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
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