From: John H. <jdh...@ac...> - 2004-11-16 16:58:19
|
>>>>> "Chris" == Chris <bi...@Fu...> writes: Chris> Dear John, I see your points. However, after I changed to Chris> using add_artist. This is still nothing on the canvas. I Chris> think that there is some problem with the draw function of Chris> my arrow class. I have no idea what else should be Chris> there. At the moment, only one call in my case as below. Chris> def draw(self, renderer): self._stem.draw(renderer) Chris> Could u tell what else should be called? Your drawing function looks fine. Could this be a problem with axes limits. Make sure the x and y limits are set properly with the xlim, ylim or axis commands. The limits are normally autoscaled by calling plot, but you are not using it so you have to take care that the limits are set. After you get a working prototype, I can help you with the autoscaling part. If this doesn't fix your problem, email me your matlab.py, axes.py and test code as attachments off-list and I'll take a look. JDH |