On Wed, Jun 17, 2009 at 9:25 AM, Nicolas Rougier
<nicolas.roug...@loria.fr>wrote:
>
> Hello,
>
> To give you some hints on performances using OpenGL, you can have a look
> at glumpy:
> http://www.loria.fr/~rougier/tmp/glumpy.tgz<http://www.loria.fr/%7Erougier/tmp/glumpy.tgz>
> (It requires pyglet for the OpenGL backend).
>
> It is not yet finished but it is usable. Current version allows to
> visualize static numpy float32 array up to 8000x8000 and dynamic numpy
> float32 array around 500x500 depending on GPU hardware (dynamic means
> that you update image at around 30 fps/second).
>
> The idea behind glumpy is to directly translate a numpy array into a
> texture and to use shaders to make the colormap transformation and
> filtering (nearest, bilinear or bicubic).
>
> Nicolas
Nicholas,
How do you run a the demo scripts in glumpy?
I get errors both with Ipython run and python script_name.py
In [1]: run demo-simple.py
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/home/gsever/glumpy/demo-simple.py in <module>()
20 #
21 #
-----------------------------------------------------------------------------
---> 22 import glumpy
23 import numpy as np
24 import pyglet, pyglet.gl as gl
/home/gsever/glumpy/glumpy/__init__.py in <module>()
23 import colormap
24 from color import Color
---> 25 from image import Image
26 from trackball import Trackball
27 from app import app, proxy
/home/gsever/glumpy/glumpy/image.py in <module>()
25
26
---> 27 class Image(object):
28 ''' '''
29 def __init__(self, Z, format=None, cmap=colormap.IceAndFire,
vmin=None,
/home/gsever/glumpy/glumpy/image.py in Image()
119 return self._cmap
120
--> 121 @cmap.setter
122 def cmap(self, cmap):
123 ''' Colormap to be used to represent the array. '''
AttributeError: 'property' object has no attribute 'setter'
WARNING: Failure executing file: <demo-simple.py>
[gse...@ccn glumpy]$ python demo-cube.py
Traceback (most recent call last):
File "demo-cube.py", line 22, in <module>
import glumpy
File "/home/gsever/glumpy/glumpy/__init__.py", line 25, in <module>
from image import Image
File "/home/gsever/glumpy/glumpy/image.py", line 27, in <module>
class Image(object):
File "/home/gsever/glumpy/glumpy/image.py", line 121, in Image
@cmap.setter
AttributeError: 'property' object has no attribute 'setter'
Have Python 2.5.2...
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel