Re: [Matplotlib-users] How to find a Y value based on X value in 2Dline

2008-08-08 Thread Roban Kramer
I think what you are asking for is interpolation. You have a set of (x,y) data, and you want to find a new y-value corresponding to a given x-value. Take a look at scipy.interpolate.interp1d import numpy import scipy import scipy.interpolate # Set up fake "data". x= numpy.arange(10) y = numpy.sin

[Matplotlib-users] How to find a Y value based on X value in 2Dline

2008-08-08 Thread Kazansky, Stella (SKAZANSK)
Hello, everyone, I am creating a plot based on several (x,y) value pairs (it constitutes some fuel burn envelope). Then I have to draw a line parallel to X axis with a given value of X that would start at my plot, which means I have to find a value of Y on my plot that corresponds to a given X