Will Lee | 1 Feb 01:09
Picon

Problem with SimpleZoom/DragZoom tool

Hi,

I created a graph with SimpleZoom overlay and the DragZoom tool.  When
I zoomed in all the way, I got:

...
c:\python25\lib\site-packages\enthought.chaco2-3.0.0a1.dev_r16375-py2.5-win32.egg\enthought\chaco2\axis.py
in _compute_tick_positions(self, gc, overlay_component)
    539
    540         if datalow > datahigh:
--> 541             raise RuntimeError, "DataRange low is greater than
high; unable to compute axis ticks."
    542
    543         if not self.tick_generator:

<type 'exceptions.RuntimeError'>: DataRange low is greater than high; unable to
compute axis ticks.

When I print it out in pdb, I got:

ipdb> print datalow
0.495734423471
ipdb> print datahigh
0.495707909632

Now I'm trying to set the max_zoom_in_factor and max_zoom_out_factor
to control the limit, but I'm still getting into this stage very
easily if my data range is small.  Can you tell me what is causing
this problem?

(Continue reading)

Martin Chilvers | 1 Feb 12:49
Picon

Missing node in Traits 3.0 value tree..

G'day,

It seems there is no node in the value tree for Python *classes*. Attached is 
the value tree module modified to have one (you also need to create an 
associated icon 'class_node.png' - I just copied 'object_node.png')...

If somebody could review it and check it in that would be great...

Martin

#------------------------------------------------------------------------------
#
#  Copyright (c) 2006, Enthought, Inc.
#  All rights reserved.
#  
#  This software is provided without warranty under the terms of the BSD
#  license included in enthought/LICENSE.txt and may be redistributed only
#  under the conditions described in the aforementioned license.  The license
#  is also available online at http://www.enthought.com/licenses/BSD.txt
#  Thanks for using Enthought open source!
#  
#  Author: David C. Morrill
#
#  Date: 01/05/2006
#
# 
# 
#------------------------------------------------------------------------------
(Continue reading)

Rostislav Chudoba | 1 Feb 19:26
Picon
Picon

How to set chaco tick label formatter


Hello,

My question relates to ChacoPlotItem  - If the index or value data contains 
very small numbers (e.g. linspace(0,1e-4,100)) they are displayed as zeros in 
tick labels. How can change it? I notice that in axis.py there is a trait 
attribute tick_label_formatter - a callable that can format the input number 
to a string. However, in Chaco2PlotItem, this option is not directly 
configurable. What is the corret way to set this attribute? Thanks a lot.

Rostislav
David C. Morrill | 1 Feb 19:13

Re: enthought.chaco2.chaco2_plot_container_editor update question

Robert Kern wrote:
> rogisyl wrote:
>   
>> Why is the update_editor method blank?
>>
>> chaco2_plot_container_editor._PlotContainerEditor.update_editor??
>>
>>     def update_editor( self ):
>>         """ Updates the editor when the object trait changes externally 
>> to the
>>         editor.
>>         """
>>         pass
>>     
>
> It's normally one of the overridden methods in most Editors. In this case, it's 
> not necessary. The author probably thought that he might need to override it 
> when he started, found out that he didn't, and forgot to remove it.
>
>   

Actually, the base class implementation of 'update_editor' does some 
code which would be inappropriate for this editor, so the author 
override it to do nothing. This is fairly typical for editors which set 
up their own event listeners independently of the normal Traits UI 
framework...

Dave Morrill
David C. Morrill | 1 Feb 19:32

Re: Missing node in Traits 3.0 value tree..

Done. Thanks, Martin!

(The class node icon is the same as the object node icon for now...I'll 
fix it when I get home tonight)...

Dave Morrill

Martin Chilvers wrote:
> G'day,
>
> It seems there is no node in the value tree for Python *classes*. 
> Attached is the value tree module modified to have one (you also need 
> to create an associated icon 'class_node.png' - I just copied 
> 'object_node.png')...
>
> If somebody could review it and check it in that would be great...
>
> Martin
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Enthought-dev mailing list
> Enthought-dev@...
> https://mail.enthought.com/mailman/listinfo/enthought-dev
Robert Kern | 1 Feb 19:36
Picon
Gravatar

Re: enthought.chaco2.chaco2_plot_container_editor update question

David C. Morrill wrote:
> Robert Kern wrote:
>> rogisyl wrote:
>>   
>>> Why is the update_editor method blank?
>>>
>>> chaco2_plot_container_editor._PlotContainerEditor.update_editor??
>>>
>>>     def update_editor( self ):
>>>         """ Updates the editor when the object trait changes externally 
>>> to the
>>>         editor.
>>>         """
>>>         pass
>>>     
>> It's normally one of the overridden methods in most Editors. In this case, it's 
>> not necessary. The author probably thought that he might need to override it 
>> when he started, found out that he didn't, and forgot to remove it.
> 
> Actually, the base class implementation of 'update_editor' does some 
> code which would be inappropriate for this editor, so the author 
> override it to do nothing. This is fairly typical for editors which set 
> up their own event listeners independently of the normal Traits UI 
> framework...

Ah, I was looking at the generic Editor base class, whose .update_editor() is 
empty, rather than the wx-backend one, which is not.

--

-- 
Robert Kern
(Continue reading)

Travis E. Oliphant | 1 Feb 21:44

Re: Beta of enthought_python-2.5.2001.msi fails

Simon J. Hook wrote:
> Travis,
>
> Thanks for the letting me know about the single-click install. I 
> downloaded and installed it. The install was v. smooth although it did 
> take a while. Once installed I went to the program menu and clicked on 
> one of the chaco2 demos. A black screen flashed up and disappeared so I 
> tried it from the command prompt and got:
>
> D:\Python25\Examples\chaco2>python two_plots.py
> Traceback (most recent call last):
>   File "two_plots.py", line 8, in <module>
>     from enthought.enable2.wx_backend.api import Window
> ImportError: No module named enable2.wx_backend.api
>
> I like the online docs but do not  see anything for ETS.
>
> Suggestions on how to fix will be much appreciated.
>
>   
I don't have any quick suggestions.  We are in the middle of putting out 
a hopefully very-much improved msi next week.   So, I would suggest 
waiting for that if you can.

-Travis O.
Dave Peterson | 1 Feb 21:48

Re: Beta of enthought_python-2.5.2001.msi fails

Travis E. Oliphant wrote:
> Simon J. Hook wrote:
>   
>> Travis,
>>
>> Thanks for the letting me know about the single-click install. I 
>> downloaded and installed it. The install was v. smooth although it did 
>> take a while. Once installed I went to the program menu and clicked on 
>> one of the chaco2 demos. A black screen flashed up and disappeared so I 
>> tried it from the command prompt and got:
>>
>> D:\Python25\Examples\chaco2>python two_plots.py
>> Traceback (most recent call last):
>>   File "two_plots.py", line 8, in <module>
>>     from enthought.enable2.wx_backend.api import Window
>> ImportError: No module named enable2.wx_backend.api
>>
>> I like the online docs but do not  see anything for ETS.
>>
>> Suggestions on how to fix will be much appreciated.
>>
>>   
>>     
> I don't have any quick suggestions.  We are in the middle of putting out 
> a hopefully very-much improved msi next week.   So, I would suggest 
> waiting for that if you can.
>
> -Travis O.
>   

(Continue reading)

Martin Chilvers | 1 Feb 22:27
Picon

Re: Missing node in Traits 3.0 value tree..

G'day,

David C. Morrill wrote:
> Done. Thanks, Martin!
> 
> (The class node icon is the same as the object node icon for now...I'll 
> fix it when I get home tonight)...

Excellent - thanks for that...

Martin
Simon J. Hook | 1 Feb 22:53
Picon
Picon
Favicon

Re: Beta of enthought_python-2.5.2001.msi fails

Hi Dave,

Sorry but I have been unable to install Enthon using easy_install. I was 
hoping you would be able to tell me why easy_install was self 
destructing? At the moment I am 0 for 2, neither easy_install or the 
single_install of Enthon works for me. I will be happy to try a "fixed" 
version of either one of the them.

Best wishes, Simon

Dave Peterson wrote:
> Travis E. Oliphant wrote:
>   
>> Simon J. Hook wrote:
>>   
>>     
>>> Travis,
>>>
>>> Thanks for the letting me know about the single-click install. I 
>>> downloaded and installed it. The install was v. smooth although it did 
>>> take a while. Once installed I went to the program menu and clicked on 
>>> one of the chaco2 demos. A black screen flashed up and disappeared so I 
>>> tried it from the command prompt and got:
>>>
>>> D:\Python25\Examples\chaco2>python two_plots.py
>>> Traceback (most recent call last):
>>>   File "two_plots.py", line 8, in <module>
>>>     from enthought.enable2.wx_backend.api import Window
>>> ImportError: No module named enable2.wx_backend.api
>>>
(Continue reading)


Gmane