Re: [Matplotlib-users] Draw lines on the graph

2010-02-21 Thread Jakub Nowacki
Hi, If I understand right you want to redraw new trend lines when you zoom in (recalculated for the visible data). You then have to use event callbacks which usage example is shown here (view limits change example): http://matplotlib.sourceforge.net/examples/event_handling/viewlims.html For on

[Matplotlib-users] Draw lines on the graph

2010-02-21 Thread logan
Hi, I'm plotting some graphs with matplotlib and I would like to do the following: Draw lines on the graph (match two points to show the up-trend or down-trend line of a stock). I would want the lines drawn by me on the graph resize accordingly as one zooms in or out of the graph. Can anyone kin