Philipp Lies wrote:
> Hi,
> 
> is there a backend that supports 16bit tiff images?

Can you just use png, and use the netpbm utilities or ImageMagick 
convert program to go to and from tiff?

Eric

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


------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to