Hi Mico,

Am Mittwoch, 27. Oktober 2010, 16:34:56 schrieb Mico Filós:
> I have an array containing N points (x, y, r), where x is an
> abscissa, y is an ordinate, and r is a real between 0 and 1. I would
> like to plot the the array {(x, y)} as a continuous path, using the
> sequence of r's as the normalized gray value at each particular
> point.  This is not hard if data points are plotted with symbols,
> but I want to use the line style for data points, taking the
> sequence of N r's as the (externally defined) color gradient  for
> the curve defined by {(x, y)}.
> It sounds more complicated than it really is. Any ideas?

I don't see an easy way to do this. What makes this even more complex is 
that with lines your third dimension (r) is not well defined. For points 
you can always assign a color to the point, but a line lives between two 
points. What color do you assign to the line?

Of course there are complicated ways to do something like this:
The most straightforward way I can think of at the moment is to create 
the paths between the points by hand, then splitting these paths and 
then drawing each of these subpaths with colors according to the colors 
at your points.

HTH,
Stefan

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to