Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Attach legend to a family of functions?
Replies: 3   Last Post: Dec 30, 2012 8:49 PM

 Search Thread: Advanced Search

 Messages: [ Previous | Next ]
 Nasser Abbasi Posts: 6,677 Registered: 2/7/05
Re: Attach legend to a family of functions?
Posted: Dec 28, 2012 5:32 AM
 Plain Text Reply

On 12/27/2012 4:02 AM, dabd wrote:
> How can I attach a legend to this plot?
>
> Plot[Evaluate[{(1+x-t-4x(1+x)t+Sqrt[(x+2x^2)^2 t])/((1+2x)^2 t-1)}/.t->Range[0,1,0.1]],{x,0,20}]
>
> I would like a legend for each t in the range.
>
> Thanks.
>

V9:

Plot[Evaluate[{(1 + x - t - 4 x (1 + x) t +
Sqrt[(x + 2 x^2)^2 t])/((1 + 2 x)^2 t - 1)} /.
t -> Range[0, 1, 0.1]], {x, 0, 20}, PlotLegends -> "Expressions"]

screen shot:

http://12000.org/tmp/122712/plot.png

Date Subject Author
12/27/12 Dário Abdulrehman
12/28/12 Nasser Abbasi
12/28/12 Helen Read
12/30/12 Dário Abdulrehman

© The Math Forum at NCTM 1994-2018. All Rights Reserved.