Re: I want a plot label that shows interactively the values of a

• To: mathgroup at smc.vnet.net
• Subject: [mg120888] Re: I want a plot label that shows interactively the values of a
• From: Yves Klett <yves.klett at googlemail.com>
• Date: Sun, 14 Aug 2011 08:15:09 -0400 (EDT)
• Delivered-to: l-mathgroup@mail-archive0.wolfram.com
• References: <j25ktl\$ov3\$1@smc.vnet.net>

```Use StringJoin and ToString to produce a string that is displayed
properly. Otherwise, you get a mix of strings and expressions that is
ordered like any other input:

"p2="*10

becomes

10 "p2="

Regards,
Yves

PS: Supplying incomplete code (with ... etc.) is not very helpful. Paste
working code if possible or make up a simplified - also working - example.

Am 13.08.2011 12:50, schrieb Massimiliano LANDI:
> Hello everyone
>
> I am trying to add to a plot I created a text that shows the value of a variable, call it p2, that can be changed via Manipulate.
>
> So I did:
>
> Manipulate[
> Plot[....,Epilog->{Text[Style["p2=" p2, 18,   If[(A/(1 + B n) <= p2 <= (A + A n)/(1 + n + B n) &&  k == 2) || (p2 == 1 && k == 1), Red, Black],   Background -> LightGray]}],
> ....]
>
> The funny thing is that with this code, in the text label, the actual value of the variable appears before the text p2.
>
> For example, when I set p2=10, the label in the graph becomes
>
> 10 p2
>
> whereas I would like to see
>
> p2 = 10
>
> Any help?
>
> Thanks in advance
>
> Massimiliano Landi

```

• Prev by Date: Re: Order of polynomial terms
• Next by Date: I want to Manipulate the physical world!
• Previous by thread: Re: I want a plot label that shows interactively the values of a
• Next by thread: Re: I want a plot label that shows interactively the values of a