On Mon, Jan 23, 2012 at 11:17 AM, Stan West <stan.w...@nrl.navy.mil> wrote:
>> From: Russ Dill [mailto:russ.d...@gmail.com]
>> Sent: Saturday, January 21, 2012 16:31
>>
>> I'm using matplotlib from pylab to generate eye patterns for signal
>> simulations.
>
> ...
>
>> Is there any way within matplotlib to do that right now?
>
> One way combines Numpy's histogram2d and matplotlib's imshow, as in the
> example in the histogram2d docs [1].  The example's x array should become all
> of the time samples in your traces, strung together in one dimension; the y
> array, the corresponding voltage samples.
>

I'll try it out and see what I get, but I don't think it will work so
well. The problem is that while the data is made up of x/y samples, it
actually represents a line. The samples should be evenly distributed
not along the x or y axis, but along the length of the line. I feel
like I'll need a line drawing algorithm.

(For example, if samples are evenly distributed along the x axis, a 89
degree line is highly under-represented, but a 1 degree line is highly
over-represented. The number of samples should be sqrt(dx^2 + dy^2),
but with evenly spaced x samples, its just dx.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to