(self)
| 322 | return outcome |
| 323 | |
| 324 | def position(self): |
| 325 | x1 = (self.index+1)*XGRID - WIDTH//2 |
| 326 | x2 = x1+WIDTH |
| 327 | y2 = (self.array.maxvalue+1)*YGRID |
| 328 | y1 = y2 - (self.value)*YGRID |
| 329 | return x1, y1, x2, y2 |
| 330 | |
| 331 | def nearestindex(self, x): |
| 332 | return int(round(float(x)/XGRID)) - 1 |
no outgoing calls
no test coverage detected