Re: finer grained zooming
Yes, I should have been more specific. I can zoom sub-second but only see a straight line. I will try setting max_zoom_factor.
Thanks to both of you Peter and Bryce !
-----Original Message-----
From: enthought-dev-bounces <at> enthought.com [mailto:enthought-dev-bounces <at> enthought.com] On
Behalf Of Peter Wang
Sent: Monday, November 01, 2010 10:27 AM
To: enthought-dev <at> enthought.com
Subject: Re: [Enthought-Dev] finer grained zooming
On Mon, Nov 1, 2010 at 10:17 AM, Jim Radke <jradke <at> getcollc.com> wrote:
> I use the commands below to set the zoom control and x-axis. I have a time
> series at every 100ms and precision of the values I’m plotting to 8
> decimals, yet when I zoom I can’t seem to see changes in the plot for
> anything sub-second. Is there some configuration I need to add or change to
> support finer grained zooming ?
Are you able to zoom to sub-second intervals? If so, is your issue
that it only shows a straight line connecting the values from each
second to each subsequent second, and does not display intra-second
values?
> self.plotcontainer.overlays.append(ZoomTool(self.plotcontainer,
> drag_button="left", always_on=True, tool_mode="range", axis="index"))
> self.plotcontainer.x_axis = ScalesPlotAxis(self.plotcontainer,
> orientation='bottom', title='Time',
> tick_generator=ScalesTickGenerator(scale=CalendarScaleSystem()))
There is nothing intrinsic in this code snippet that would cause a
limit to one-second intervals. One thing you might want to look at is
setting the max_zoom_factor trait on the ZoomTool. It defaults to
1e5; you might want to crank this up to 1e7 or so.
HTH,
Peter
_______________________________________________
Enthought-Dev mailing list
Enthought-Dev <at> mail.enthought.com
https://mail.enthought.com/mailman/listinfo/enthought-dev
This e-mail and its attachments are intended only for the individual or entity to whom it is addressed and
may contain information that is confidential, privileged, inside information, or subject to other
restrictions on use or disclosure. Any unauthorized use, dissemination or copying of this transmission
or the information in it is prohibited and may be unlawful. If you have received this transmission in
error, please notify the sender immediately by return e-mail, and permanently delete or destroy this
e-mail, any attachments, and all copies (digital or paper). Unless expressly stated in this e-mail,
nothing in this message should be construed as a digital or electronic signature.
_______________________________________________
Enthought-Dev mailing list
Enthought-Dev <at> mail.enthought.com
https://mail.enthought.com/mailman/listinfo/enthought-dev