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


Groups > comp.soft-sys.math.mathematica > #12959 > unrolled thread

Re: Attach legend to a family of functions?

Started byBob Hanlon <hanlonr357@gmail.com>
First post2012-12-28 10:31 +0000
Last post2012-12-28 10:31 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Attach legend to a family of functions? Bob Hanlon <hanlonr357@gmail.com> - 2012-12-28 10:31 +0000

#12959 — Re: Attach legend to a family of functions?

FromBob Hanlon <hanlonr357@gmail.com>
Date2012-12-28 10:31 +0000
SubjectRe: Attach legend to a family of functions?
Message-ID<kbjset$mv1$1@smc.vnet.net>
Plot[
 Evaluate[
  Tooltip[
   Simplify[
    Table[
     Tooltip[
      y = (1 + x - t - 4 x (1 + x) t + Sqrt[(x + 2 x^2)^2 t])/
        ((1 + 2 x)^2 t - 1),
      {t // N, y}],
     {t, 0, 1, 1/10}],
    x >= 0]]],
 {x, 0, 20},
 Frame -> True,
 Axes -> False,
 PlotLegends -> Range[0, 1, .1],
 ImageSize -> 500,
 AspectRatio -> .75]


Bob Hanlon


On Thu, Dec 27, 2012 at 5:05 AM, dabd <dario.rehman@gmail.com> 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.
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web