line 727, in draw get_current_fig_manager().canvas.draw()
> File
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
> line 234, in draw self._pixmap_prepare (w, h) File
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
> line 291, in _pixmap_prepare self._pixmap_height)
> RuntimeError: could not create GdkPixmap object
Try updating from CVS -- this is unlikely to be due to his script, but
to some changes I made in the gtk backend and then fixed.
JDH
just for testing, note that there is a syntax problem in the line I sent (in laby=... one " is missing) .
So you should use:
x = array([0.,1.,2.,3.])
y = array([1.,0.,3.,2.])
z = array([4.,3.,0.,1.])
tmp = pxyz(x, y, z, labx="x", laby="y", labz="z")
sorry for this.
Eric
···
--
Observatoire de Lyon emsellem@...419...
9 av. Charles-Andre tel: +33 4 78 86 83 84
69561 Saint-Genis Laval Cedex fax: +33 4 78 86 83 86
France http://www-obs.univ-lyon1.fr/eric.emsellem
> line 727, in draw get_current_fig_manager().canvas.draw()
> File
>
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
> line 234, in draw self._pixmap_prepare (w, h) File
>
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
> line 291, in _pixmap_prepare self._pixmap_height)
> RuntimeError: could not create GdkPixmap object
Try updating from CVS -- this is unlikely to be due to his script, but
to some changes I made in the gtk backend and then fixed.
That did it.
That's a nice first stab at 3D scatter plots, Eric.
any suggestion of how to improve the
speed/efficiency, esthetic and functionality of such a routine?
I'll let the guru's speak to efficiency, but I have a suggestion for aesthetic
and functionality.
I have done quite a lot of 3D design in AutoCAD, and they have a very nice
"orbit" tool. They superimposed this compass thing over the drawing:
---O---
/ \
/ \
> >
O O
> >
\ /
\ /
---O---
When you press the mouse button down in the N or S pole and then drag it, it
rotates around the E-W axis. If you press the mouse button down outside of
the compass, it rotates around the axis pointing out of the screen. I forget
what it does when you press the button down inside the compass but not on a
pole.
I guess this is way out of scope at this point, but I thought I'd mention it.
Darren
···
On Wednesday 17 August 2005 11:15 am, John Hunter wrote: