Colorfunction along a line...
- To: mathgroup at smc.vnet.net
- Subject: [mg59055] Colorfunction along a line...
- From: Curtis Osterhoudt <gardyloo at mail.wsu.edu>
- Date: Thu, 28 Jul 2005 02:26:00 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi, all, I have a series (several thousands) of data traces as read from an oscilloscope. From these, I can extract the envelopes easily, and these are the "raw" data with which I'll have to work. I'd like to be able to map a very long list of data onto a straight line, and have the line's color be dependent upon some ColorFunction (which I can define once I figure out what sorts of amplitudes will be dealt with). Is there an easy way to do this using non-primitives? In other words, if I have to define a line as a succession of colored points, I will, but I'd rather just shove a colorfunction into a Line (or a Plot[constant, {x, 0, 1}] ) routine. As an example (though not really exactly what I want to do, nor do I see how to apply it to my problem), there's an example at http://www.outbacksoftware.com/mathematica/mathematica-intro.html, about halfway down that page, wherein a graphics object (a plot of several sine functions) is colored according to the x-coordinate. However, I'd like to map some other (perhaps many) hue values onto my lines. Thanks, Curtis O.