From: Andrea G. <and...@gm...> - 2010-02-28 02:05:20
|
On 28 February 2010 01:18, Jae-Joon Lee wrote: > On Sat, Feb 27, 2010 at 12:29 PM, Andrea Gavana <and...@gm...> wrote: >> This code is not doing anything useful as I always get a badness of 0, >> although I can see that the new text overlaps quite a lot of other >> artists. >> >> Does anyone have some suggestion on how to improve the code? >> > > A snippet of code seldom helps. > Is your x,y input in display coordinates? No, data values. > Ideally, this must be checked in the drawing time (as in the legend). This is what I am trying to do, but I messed up screen/data/canvas coordinates and I can't get my head around it :-( Andrea. "Imagination Is The Only Weapon In The War Against Reality." http://xoomer.alice.it/infinity77/ http://thedoomedcity.blogspot.com/ |