Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #7797

Plotting a line with color changing as a function of position

From "Eric Michielssen" <emichiel@eecs.umich.edu>
Newsgroups comp.soft-sys.math.mathematica
Subject Plotting a line with color changing as a function of position
Date 2012-01-14 07:58 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jercj4$1c7$1@smc.vnet.net> (permalink)

Show all headers | View raw


Hello,

I would like to plot/draw a line between two points p1= (x1,y1} and
p2={x2,y2}, and I would like the line color (preferred) or thickness or dash
density  to be reflective of a known function f(d) that measures the
distance d from p1 to the point on the line.

Say p1={x1,y1}={0.,0.}, p2={10.,10}, and f[d_]:=Cos[d].

Is this possible?

Thanks!
Eric

Eric Michielssen


Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Plotting a line with color changing as a function of position "Eric Michielssen" <emichiel@eecs.umich.edu> - 2012-01-14 07:58 +0000
  Re: Plotting a line with color changing as a function of position Dan <dflatin@rcn.com> - 2012-01-14 22:20 +0000

csiph-web