Hi,
is there a backend that supports 16bit tiff images?
According to the website GDK supports tiff but that's wrong:
>>>import matplotlib
>>>matplotlib.use('GDK')
>>>import matplotlib.pyplot as pyplot
>>>pyplot.imsave(arr=X, fname='test.tif')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/pymodules/python2.6/matplotlib/pyplot.py", line 1425, in imsave
return _imsave(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/matplotlib/image.py", line 813, in imsave
fig.savefig(fname, dpi=1, format=format)
File "/usr/lib/pymodules/python2.6/matplotlib/figure.py", line 1033, in savefig
self.canvas.print_figure(*args, **kwargs)
File "/usr/lib/pymodules/python2.6/matplotlib/backend_bases.py", line 1420, in print_figure
'%s.' % (format, ', '.join(formats)))
ValueError: Format "tif" is not supported.
Supported formats: emf, eps, pdf, png, ps, raw, rgba, svg, svgz.
>>>matplotlib.backends.backend
'gdk'
matplotlib 0.99.0 python 2.6.4 ubuntu karmic x64
If matplotlib cannot provide tiff support, does someone know an alternative? PIL doesn't work either, at least not intuitively.
Cheers
Philipp
···
--
Philipp Lies
Max Planck Institute for Biological Cybernetics
Computational Vision & Neuroscience Group
Spemannstr. 41
D-72076 Tuebingen
Germany
Phone: +49-7071-601-1788
Fax: +49-7071-601-552
E-Mail: philipp.lies@...368...
http://www.kyb.mpg.de/bethgegroup