From: John H. <jdh...@ac...> - 2005-04-04 14:42:12
|
>>>>> "Darren" == Darren Dale <dd...@co...> writes: Darren> The coordinates (80.640 31.680) are rendered twice; I can Darren> comment one of these lines out of the PS file and the tick Darren> still renders. Its not a bug in draw_markers, the square Darren> data markers are only rendered once, it seems to be Darren> specific to tickmarks. Strange.... I'll look into this later. Darren> I think we could get a performance boost if all similar Darren> ticks were passed together to draw_markers, right now they Darren> are passed independently. We could, but it would require some redesign. Tick is a class, and the axis contains a list of ticks. Thus it would take some top-level redesign. Darren> Yeah, I realized I had made a boneheaded observation just Darren> after I hit the send button. It's always that way :-) That is what the send button is for: self enlightenment. Darren> OK. Would you add the signature to backend_bases? Not yet. I was just suggesting you use this internally. def draw_markers(self, gc, path, rgbFace, x, y, transform): self.push_gc(gc) while 1: .... snip... and later when it becomes part of the api, you'll already have done the hard part. You can also call this function from draw_ps. Basically, all you need to do is rip the gc setting part of out of draw_ps. JDH |