|
From: | Shai Ayal |
Subject: | Re: images |
Date: | Fri, 9 Feb 2007 17:01:48 +0200 |
On 9-Feb-2007, Shai Ayal wrote:
| Although "Premature optimization is the root of all evil", the way I handle
| this in octplot is that at object creation it's max & min are calculated and
| stored in the object, and this is used each time to get axes limits -- thus
| you do have to traverse the object tree to get the axes limits, but you do
| need to cal max/min of (possibly) very large datasets each time you want to
| draw.
OK, that's a good idea, but again, the current code is a temporary
solution. It is not perfect. It does not have to be perfect, or
really fast. But it does help if it more or less works.
| Also, why not do it in one for loop:
| construct the plotting string and get the limits in the same loop. At the
| end of the loop, append the limits statement.
OK, sure we could do this, but see again my statement above.
Patches welcome
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |