Re: Plotting vectors on a linear function
- To: mathgroup at smc.vnet.net
- Subject: [mg125965] Re: Plotting vectors on a linear function
- From: Bob Hanlon <hanlonr357 at gmail.com>
- Date: Tue, 10 Apr 2012 02:28:30 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201204090935.FAA28511@smc.vnet.net>
f[x_] = 1 - x; Plot[f[x], {x, 0, 1}, Epilog -> {Darker[Red], Table[ Arrow[{ {x, f[x]}, {x + 0.1, f[x] + 0.1}}], {x, 0, 1, 0.1}]}, PlotRange -> {{0, 1.15}, {0, 1.15}}] Bob Hanlon On Mon, Apr 9, 2012 at 5:35 AM, Clemens Diderot <clmnsbchn at gmail.com> wrote: > Hi all, > > I am trying to plot a linear function (y=1-x) together in one graph with a bunch of vectors, which have their tails on the function. A bit like in this example here: http://pic.twitter.com/GRfhjPRP > > Anyone any idea? Much appreciated! > > Best > CD >
- References:
- Plotting vectors on a linear function
- From: Clemens Diderot <clmnsbchn@gmail.com>
- Plotting vectors on a linear function