[Matplotlib-users] how to check dist between to pts on a curve?

2008-11-08 Thread Amitava Maity
Hello list, I have plotted the following curve: from pylab import * t = arange(0.0, 2.0, 0.01) s = sin(2*pi*t) plot(t, s) grid(True) show() The std matplotlib output gives only zoom, pan and save functions. I need to check the distance between two points on the plotted curve by clicking on th

[Matplotlib-users] how to plot curve between two points

2008-11-01 Thread Amitava Maity
Hello, Given a set of points: (x1, y1), (x2, y2), (x3, y3), (x4, y4), How do plot a curve y = sinh(x) between (x1, y1) and (x2, y2) and then between (x2, y2) and (x3, y3) and so on .? Thanks in advance, AMaity. --

Re: [Matplotlib-users] help with matplotlib.path class

2008-10-30 Thread Amitava Maity
Thanks, vlines is definitely the better option. By the way, I am using the Enthought python distribution for Windows. I could not get the desired output from the ipython -pylab shell. But the same code when run in SciTe and IDLE gave the desired output. On Thu, 30 Oct 2008 Michael Droettboo

Re: [Matplotlib-users] help with matplotlib.path class

2008-10-30 Thread Amitava Maity
t;plt.show() > > >However... rather than going through all that, have you >considered using vlines? That will save you the trouble of generating all the data in that format yourself. > >http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pypl ot.vlines > &g

[Matplotlib-users] help with matplotlib.path class

2008-10-30 Thread Amitava Maity
Hello list, I have generated the following tuples: (1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2) ((39525.5401, 144.91), (39525.5401, 161.352), (39874.5, 149.5), (39874.5, 166.142), (40205.0, 150.41), (40205.0, 167.051999), (40518.4497, 149.360