Tom Denniston | 1 Oct 2007 05:25
Favicon

Re: Bar charts below x axis for timeseries plot in chaco

Peter, I finally upgraded my ets so I could test these examples but
I've run into a few problems.

1. I can't seem to find the financial_plot.py in the branch of svn:

https://svn.enthought.com/enthought/browser/branches/enthought.chaco2_2.0.1/examples

2. When I launch
scales_test.py(https://svn.enthought.com/enthought/browser/branches/enthought.chaco2_2.0.1/examples/scales_test.py),
 I get the error below.  These are the versions of ets packages I am
using:

enthought.chaco2-2.0.1b1-py2.5-win32.egg:
enthought.developer-2.0b2-py2.5.egg:
enthought.enable-1.9b2-py2.5.egg:
enthought.enable2-2.0.1b1-py2.5.egg:
enthought.etsconfig-2.0b1-py2.5.egg:
enthought.io-2.0b1-py2.5.egg:
enthought.kiva-2.0.0b2.dev_r13898-py2.5-win32.egg:
enthought.naming-2.0b2-py2.5.egg:
enthought.pyface-2.0.1b1.dev_r14579-py2.5.egg:
enthought.resource-2.0b1-py2.5.egg:
enthought.sweet_pickle-2.0b2-py2.5.egg:
enthought.traits-2.0.1b1.dev_r14355-py2.5-win32.egg:
enthought.traits.ui.wx-2.0.1b1.dev_r14201-py2.5.egg:
enthought.type_manager-2.0b1-py2.5.egg:
enthought.util-2.0.1b2.dev_r14464-py2.5.egg:

RuntimeError: Font not loaded/initialized.
Traceback (most recent call last):
(Continue reading)

Picon

Re: Lights

I finally switch to Mayavi2. The illumination is very good. I'm sorry
I cann't post code:
1. My enterprise doesn't allow me to do that.
2. I should post a lot of code so you could try a working example.

Sorry,
José María

2007/9/30, Prabhu Ramachandran <prabhu@...>:
> >>>>> "José" == José María García Pérez <josemaria.alkala <at> gmail.com> writes:
>
>     José> Now I want to improve the scene illumination. I don't like
>     José> the ambient illumination: (see 01Ambient_illumination.png)
>
> Can you please send us a simple but complete example (I mean Python
> code) so someone can test it out.  I do not get such poor lighting
> with the default settings.  A simple standalone python example would
> help us help you.  Screenshots help us see what you see but don't help
> us fix things all the time.
>
> [...]
>     José> If I press the "L" key, I have access to 4 additional lights
>     José> (by mean of the Light Manager). But the piece keeps on being
>     José> black.
>
> Not sure what is going on without code.
>
>     José> If I access each light by mean of, for example :
>     >>>> _escena.window.scene.renderer.lights[0].configure_traits()
>     >>>> _escena.window.scene.renderer.lights[1].configure_traits()
(Continue reading)

Martin Chilvers | 1 Oct 2007 11:49
Picon

Re: Envisage 3.0 'Hello World'...

Hi Prabhu,

>     Martin> G'day, As part of the rework of the plugin/extension
>     Martin> mechanism, I came up with this demo of the Envisage
>     Martin> version of the old chestnut... The implementation is
>     Martin> (nearly) all there, I am really just posting this for
>     Martin> comments about the API...
> [...]
>     Martin> Any thoughts?
> 
> I like it but have a few questions:
> 
>  1. Can I do the following:
> 
>     g = Greetings()
> 
>     # Once the application is started lets say this is done.
>     g.greetings.append('Namaste')
> 
>     To get this working would I just need to do this?

I'm not quite sure what you are trying to do here, but see below!

> class HelloWorld(Plugin):
>     ...
> 
>     def _greetings_items_changed(self, list_event):
>        # Do whatever.

Yep - the idea is that you can listen to extension points changing via a normal 
(Continue reading)

Brennan Williams | 1 Oct 2007 11:59

table editor - multiple selection?

I use a table editor for displaying various attributes of a list of 
"vector" objects. One of the attributes is a boolean "import" so that I 
can select whether or not the data for a vector should be imported or not.

My question is.....

Can you do multiple selection in a table editor? i.e. some sort of 
shift+left mouse button drag to select multiple lines in the table (or 
multiple items in a column of the table)
and then with one left mouse button click enable or disable the (in my 
case) boolean flag for all the selected items in the list?

Brennan
Prabhu Ramachandran | 1 Oct 2007 11:55
Picon
Gravatar

Re: Lights

>>>>> "José" == José María García Pérez <josemaria.alkala <at> gmail.com> writes:

    José> I finally switch to Mayavi2. The illumination is very

Glad that works.

    José> good. I'm sorry I cann't post code: 1. My enterprise doesn't
    José> allow me to do that.  2. I should post a lot of code so you
    José> could try a working example.

I was not asking for your enterprise code.  I was asking for a simple
example that shows your problem.

cheers,
prabhu
Prabhu Ramachandran | 1 Oct 2007 13:54
Picon
Gravatar

Re: Envisage 3.0 'Hello World'...

>>>>> "Martin" == Martin Chilvers <martin_chilvers@...> writes:

    >> class HelloWorld(Plugin): ...
    >> 
    >> def _greetings_items_changed(self, list_event): # Do whatever.

    Martin> Yep - the idea is that you can listen to extension points
    Martin> changing via a normal trait list event, and also, the
    Martin> plugin can just manage its list of contributions and if
    Martin> they change the extension registry (and anybody using the
    Martin> extension point) get notified too..

Cool, that would be very neat.

    >>  2. How would I remove items from the greetings of the
    >> HelloWorld?  I ask this since we ran into this with the
    >> python_shell plugin earlier.  By default the shell binds a huge
    >> number of names on the shell.  IIRC there was no clean, easy
    >> way to disable this.  So was that just an implementation issue
    >> or a fundamental problem?

    Martin> Well, there is still no syntax for 'removal' of
    Martin> contributions, but what you could do instead is to
    Martin> subclass the Python Shell Plugin, change its contributions
    Martin> and then use that plugin in your application (this works
    Martin> cleanly now)... I think subclassing is cleaner than trying
    Martin> to come up with some arbitrary syntax to say add this bit,
    Martin> remove that bit etc...

OK.  I humbly request that the Python shell implementation not import
(Continue reading)

MACHARG, Robin | 1 Oct 2007 14:00
Favicon

[Chaco] Issue with hit testing and descending data indices

I have a curious problem that occured while trying to implement an interactive point highlight overlay. 
The idea is that a highlight appears around a point if you're within a threshold number of pixels of a data
point.  I'm using a lineplot. This works fine with data with a monotonically ascending index, such as
[0,1,2,3].  However if the data index is descending (i.e. [3,2,1,0]) I get incorrect behaviour.  The point
selected appears to jump around, points at either end of the plot are detected while those in the middle of
the series are not, and zooming out of a plot seems to make the detection work better (but still not correctly).

I've had a poke around and wonder if there's an issue with the reverse_1d_map() code in Chaco's base.py? 
There appears to be a piece of code that is implicitly written for ascending indices, around line 120:

    last = len(data) - 1
    if ndx < last:
        if floor_only:
            return ndx
        delta = 0.5 * (data[ndx+1] - data[ndx])
        if pt > data[ndx] + delta:
            return ndx + 1
        else:
            return ndx

It seems this should have a descending-indices option that works the other way.  I haven't quite worked out
which combination of '>', '+' etc. need reversed yet.  It's called from BaseXYPlot.map_index() and that
code (the pythagorean threshold proximity test) seems OK.

Any thoughts appreciated.

Cheers,
Robin

This e-mail and any attachment may contain confidential and/or privileged information.   If you have
(Continue reading)

Martin Chilvers | 1 Oct 2007 15:27
Picon

Re: Envisage 3.0 'Hello World'...

G'day,

>     >> class HelloWorld(Plugin): ...
>     >> 
>     >> def _greetings_items_changed(self, list_event): # Do whatever.
> 
>     Martin> Yep - the idea is that you can listen to extension points
>     Martin> changing via a normal trait list event, and also, the
>     Martin> plugin can just manage its list of contributions and if
>     Martin> they change the extension registry (and anybody using the
>     Martin> extension point) get notified too..
> 
> Cool, that would be very neat.

Yep - it *would*.... its not quite there yet, we may need a small tweak to the 
TraitType API to make it work seamlessly!

It *feels* right to me though.... an extension point is just a list that 
happens to be created by concatenating a bunch of lists provided elsewhere...

>     >>  2. How would I remove items from the greetings of the
>     >> HelloWorld?  I ask this since we ran into this with the
>     >> python_shell plugin earlier.  By default the shell binds a huge
>     >> number of names on the shell.  IIRC there was no clean, easy
>     >> way to disable this.  So was that just an implementation issue
>     >> or a fundamental problem?
> 
>     Martin> Well, there is still no syntax for 'removal' of
>     Martin> contributions, but what you could do instead is to
>     Martin> subclass the Python Shell Plugin, change its contributions
(Continue reading)

Tom Denniston | 1 Oct 2007 17:51
Favicon

Re: Bar charts below x axis for timeseries plot in chaco

I found financial_plot.py on the trunk. Should have looked there
before.  Sorry about that.  Do I need to use the trunk to get this
functionality to work.  Should I be using it instead of the branches?

On 9/30/07, Tom Denniston <tom.denniston@...> wrote:
> Peter, I finally upgraded my ets so I could test these examples but
> I've run into a few problems.
>
> 1. I can't seem to find the financial_plot.py in the branch of svn:
>
> https://svn.enthought.com/enthought/browser/branches/enthought.chaco2_2.0.1/examples
>
>
> 2. When I launch
> scales_test.py(https://svn.enthought.com/enthought/browser/branches/enthought.chaco2_2.0.1/examples/scales_test.py),
>  I get the error below.  These are the versions of ets packages I am
> using:
>
> enthought.chaco2-2.0.1b1-py2.5-win32.egg:
> enthought.developer-2.0b2-py2.5.egg:
> enthought.enable-1.9b2-py2.5.egg:
> enthought.enable2-2.0.1b1-py2.5.egg:
> enthought.etsconfig-2.0b1-py2.5.egg:
> enthought.io-2.0b1-py2.5.egg:
> enthought.kiva-2.0.0b2.dev_r13898-py2.5-win32.egg:
> enthought.naming-2.0b2-py2.5.egg:
> enthought.pyface-2.0.1b1.dev_r14579-py2.5.egg:
> enthought.resource-2.0b1-py2.5.egg:
> enthought.sweet_pickle-2.0b2-py2.5.egg:
> enthought.traits-2.0.1b1.dev_r14355-py2.5-win32.egg:
(Continue reading)

Bryce Hendrix | 1 Oct 2007 17:46

Re: table editor - multiple selection?

Not currently, although Dave M. is aware of this shortcoming and should
be actively working on it. I tinkered with it a couple of weeks ago and
was able to get shift-select working, but not control-select, so I
didn't check in my changes.

Bryce

Brennan Williams wrote:
> I use a table editor for displaying various attributes of a list of 
> "vector" objects. One of the attributes is a boolean "import" so that I 
> can select whether or not the data for a vector should be imported or not.
>
> My question is.....
>
> Can you do multiple selection in a table editor? i.e. some sort of 
> shift+left mouse button drag to select multiple lines in the table (or 
> multiple items in a column of the table)
> and then with one left mouse button click enable or disable the (in my 
> case) boolean flag for all the selected items in the list?
>
> Brennan
>
> _______________________________________________
> Enthought-dev mailing list
> Enthought-dev@...
> https://mail.enthought.com/mailman/listinfo/enthought-dev
>
>   

Gmane