1 Feb 01:09
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)
RSS Feed