fred | 1 Dec 01:10
Picon

Re: [chaco2] plot origins

Bryan Van de Ven a écrit :
> Fred,
>
> for the "Capital P" Plot object, the only settable trait is "default_origin" 
> Any plots created on a plot object will use this value at the time they are 
> created.
>
> If you want to change the origin after-the-fact, then right now you will have to 
> change the "origin" trait on the image plot itself. Something like:
>
> plot.plots['plot0_or_whatever'][0].origin = "top left"
>
>   
Ok.
I guess I got the trick (I hope ;-)

BTW, the following does not reverse the y axis:

        if ('cmap_image_plot' in plot.plots):
            p = plot.plots['cmap_image_plot'][0]
        else:
            p = plot.plots['colormapped_scatterplot'][0]
        if (self.reversed_y_axis_flag):
            p.origin = plot.default_origin = 'top left'
            plot.x_axis.orientation = 'top'
        else:
            p.origin = plot.default_origin = 'bottom left'
            plot.x_axis.orientation = 'bottom'
> and probably also change default_origin as well since that is what the axes 
> currently cue off. If you can wait over the weekend, Monday I will  add some 
(Continue reading)

fred | 1 Dec 11:02
Picon

[chaco2] last version broken ?

Hi all,

I have updated chaco2 to the latest version (#16103).

Running examples/basic/contour_cmap_plot.py now fails:

Traceback (most recent call last):
  File

"/usr/local/lib/python2.5/site-packages/enthought.enable2-3.0.0a1.dev_r16105-py2.5.egg/enthought/enable2/abstract_window.py", 
line 321, in _paint
    self.component.draw(gc, view_bounds=(0, 0, size[0], size[1]))
  File

"/usr/local/lib/python2.5/site-packages/enthought.chaco2-3.0.0a1.dev_r16103-py2.5-linux-i686.egg/enthought/chaco2/plot_component.py", 
line 123, in draw
    self._draw(gc, view_bounds, mode)
  File

"/usr/local/lib/python2.5/site-packages/enthought.enable2-3.0.0a1.dev_r16105-py2.5.egg/enthought/enable2/component.py", 
line 665, in _draw
    self._dispatch_draw(layer, bb, view_bounds, mode)
  File

"/usr/local/lib/python2.5/site-packages/enthought.enable2-3.0.0a1.dev_r16105-py2.5.egg/enthought/enable2/container.py", 
line 328, in _dispatch_draw
    component._dispatch_draw(layer, gc, new_bounds, mode)
  File

"/usr/local/lib/python2.5/site-packages/enthought.enable2-3.0.0a1.dev_r16105-py2.5.egg/enthought/enable2/container.py", 
(Continue reading)

Fernando Perez | 1 Dec 18:54
Picon
Gravatar

Re: Traits/TVTK/Mayavi2 demo materials?

On Nov 30, 2007 1:58 AM, Prabhu Ramachandran <prabhu@...> wrote:
> Fernando Perez wrote:
> >> I do have some simple weather viz stuff with mayavi2 but am not sure if
> >> the data is suitable for public consumption.  I can find out if you
> >> really want to explore that.
> >
> > If you think it's OK and running the demo can be done quickly, I'd
> > love to have it.  I can commit to simply *showing* the demo without
>
> Trouble is the data is huge and takes a bit to setup, plus it relies on
> certain custom additions to your .mayavi2/ etc., so I think it is
> probably not worth the hassle.  It may be easier sharing a few
> screenshots for your presentation if you want.   I could check on that.
>
> > giving the data to anyone (it will be on my laptop only, not on any
> > computer accessible to anyone in the course).  But if it's a hassle,
> > don't worry.  Between the suggestions you've all given me I'm sure
> > there will be plenty, so don't go to extraordinary lengths for this.
>
> Right, I think you should have enough to work with.  Let me know if you
> really think the weather data would make a difference or if you'd like
> screenshots.

Don't worry: if you have a screenie or two, that will be enough.  It's
a short time slot, so as long as we can demo something  we'll be OK.
You guys have provided plenty of good suggestions, and we also have
the fluidlab app that Pete Schmitt wrote.  So the screenies will be
good to show them what can be done with the type of data they're
familiar with at the end.

(Continue reading)

Andrew Straw | 1 Dec 23:35
Picon
Gravatar

the real ETS source code: which one?

= The question itself =

Is ETS is continuing support for setuptools? It appears that Gaël 
Varoquaux packaging a version of ETS (or parts thereof) with setuptools 
stripped, but is this going to be the mainline future of ETS? Or are 
these special sources built just for Debian systems? Or am I missing the 
picture entirely?

The rest of this email is various stuff that you don't really have to 
read...

= Speculation from all the below, and a suggestion =

I surmise that Gaël is making a 2nd set of source releases for ETS. This 
version does not have a setuptools requirement, and the idea is that 
this will help Ondřej Čertík can package ETS for Debian. This ultimate 
goal, getting ETS in Debian, I strongly support, and this email is in 
the spirit of furthering this effort. I guess the reason that removing 
setuptools is thought necessary is because of the extremely hostile 
reaction to setuptools in some quarters of the Debian developer 
community. However, I note that setuptools and Debian can be made to get 
along. For example, see the Debian pacakges of python-opengl, trac, and 
python-turbogears, to name a few. I suggest that there is no need for 
splitting the ETS source distributions into a setuptools version and a 
setuptools-free version. Instead, I think that Debian packages of ETS 
can use the same source, and I'm happy to attempt to help, albeit only 
with the limited time I have available for this sort of thing.

= Background/Context of my question =

(Continue reading)

rharder | 2 Dec 05:11

mayavi2

Hi,

I can't get Mayavi2 to run on a winxp machine.
I installed with the enstaller, double clicked on the  
c:\python25\scripts\mayavi2-script.py.  it starts and draws most of  
the panels in the app but seems to die when creating the renderwindow.  
  it completely crashes python and the typical WindowsXP send bug  
report window pops up.

I've also tried running it from the command line and this did the same thing:

C:\Python25\Lib\site-packages\enthought.mayavi-2.0.2a1-py2.5.egg\enthought\mayav
i\scripts>c:\Python25\Scripts\ipython.exe mayavi2.py
Set Envisage to use the workbench UI: True
Set Envisage to use the workbench UI: True
C:\Python25\lib\site-packages\vtk-5.0.3.dev200710260324.0002_s-py2.5-win32.egg\v
tk\wx\wxVTKRenderWindow.py:79: DeprecationWarning: The wxPython  
compatibility pa
ckage is no longer automatically generated or actively maintained.   
Please switc
h to the wx package as soon as possible.
   from wxPython.wx import *

suggestions?

rpss
rharder | 2 Dec 07:18

mayavi2


So I'm pretty certain that my problem is coming from the creation of  
the scene.  The below works fine and the mayavi window opens and is  
responsive, until I select File->New->VTK Scene from the menu.  Then  
it crashes.

In [1]: from enthought.mayavi.app import Mayavi
Set Envisage to use the workbench UI: True
Set Envisage to use the workbench UI: True

In [2]: class MyClass(Mayavi):
    ...:     def run(self):
    ...:         script=self.script
    ...:
    ...:

In [3]: mc=MyClass()

In [4]: mc.main()
C:\Python25\lib\site-packages\vtk-5.0.3.dev200710260324.0002_s-py2.5-win32.egg\v
tk\wx\wxVTKRenderWindow.py:79: DeprecationWarning: The wxPython  
compatibility pa
ckage is no longer automatically generated or actively maintained.   
Please switc
h to the wx package as soon as possible.
   from wxPython.wx import *
Matthieu Brucher | 2 Dec 09:11
Picon

Re: mayavi2

In [4]: mc.main()
C:\Python25\lib\site-packages\vtk-5.0.3.dev200710260324.0002_s-py2.5-win32.egg\v
tk\wx\wxVTKRenderWindow.py:79: DeprecationWarning: The wxPython
compatibility pa
ckage is no longer automatically generated or actively maintained.
Please switc
h to the wx package as soon as possible.
   from wxPython.wx import *

This is not the problem, it's the VTK wrappers that were not updated.

What is strange is that I got it working on several computers with XP...

Matthieu
--
French PhD student
Website : http://miles.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher
_______________________________________________
Enthought-dev mailing list
Enthought-dev@...
https://mail.enthought.com/mailman/listinfo/enthought-dev
Matthieu Brucher | 2 Dec 10:06
Picon

Re: mayavi2

I just installed Enthought packages, and it worked like a charm :|

Matthieu

2007/12/2, rharder-+n96ZFM2NXih6J55Ss3d3w@public.gmane.org < rharder-+n96ZFM2NXih6J55Ss3d3w@public.gmane.org>:
so what did you do to make it work?  Is it a secret?


>
> This is not the problem, it's the VTK wrappers that were not updated.
>
> What is strange is that I got it working on several computers with XP...
>
> Matthieu
> --
> French PhD student
> Website : http://miles.developpez.com/
> Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
> LinkedIn : http://www.linkedin.com/in/matthieubrucher
>






--
French PhD student
Website : http://miles.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher
_______________________________________________
Enthought-dev mailing list
Enthought-dev@...
https://mail.enthought.com/mailman/listinfo/enthought-dev
Gael Varoquaux | 2 Dec 12:38
Favicon
Gravatar

Re: mayavi2

On Sat, Dec 01, 2007 at 10:11:23PM -0600, rharder@... wrote:
> I can't get Mayavi2 to run on a winxp machine.
> I installed with the enstaller, double clicked on the  
> c:\python25\scripts\mayavi2-script.py.  it starts and draws most of  
> the panels in the app but seems to die when creating the renderwindow.  
>   it completely crashes python and the typical WindowsXP send bug  
> report window pops up.

[...]

> suggestions?

Sorry, I cannot help you, I don't use XP at all. Hopefully by Monday
others that use XP will be able to pitch in.

Cheers,

Gaël
Matthieu Brucher | 2 Dec 13:34
Picon

Re: mayavi2

It could be a problem with your 3D driver. Do other 3D programs work correctly ?

Matthieu

2007/12/2, Gael Varoquaux <gael.varoquaux-t+5nXNeJE7o5viHyz3+zKA@public.gmane.org >:
On Sat, Dec 01, 2007 at 10:11:23PM -0600, rharder-+n96ZFM2NXih6J55Ss3d3w@public.gmane.org wrote:
> I can't get Mayavi2 to run on a winxp machine.
> I installed with the enstaller, double clicked on the
> c:\python25\scripts\mayavi2-script.py.  it starts and draws most of
> the panels in the app but seems to die when creating the renderwindow.
>   it completely crashes python and the typical WindowsXP send bug
> report window pops up.

[...]

> suggestions?

Sorry, I cannot help you, I don't use XP at all. Hopefully by Monday
others that use XP will be able to pitch in.

Cheers,

Gaël

_______________________________________________
Enthought-dev mailing list
Enthought-dev <at> mail.enthought.com
https://mail.enthought.com/mailman/listinfo/enthought-dev




--
French PhD student
Website : http://miles.developpez.com/
Blogs : http://matt.eifelle.com and http://blog.developpez.com/?blog=92
LinkedIn : http://www.linkedin.com/in/matthieubrucher
_______________________________________________
Enthought-dev mailing list
Enthought-dev@...
https://mail.enthought.com/mailman/listinfo/enthought-dev

Gmane