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


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

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

Started byHeike Gramberg <heike.gramberg@gmail.com>
First post2011-08-14 12:10 +0000
Last post2011-08-14 12:10 +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: I want a plot label that shows interactively the values of a Heike Gramberg <heike.gramberg@gmail.com> - 2011-08-14 12:10 +0000

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

FromHeike Gramberg <heike.gramberg@gmail.com>
Date2011-08-14 12:10 +0000
SubjectRe: I want a plot label that shows interactively the values of a
Message-ID<j28e0g$368$1@smc.vnet.net>
Mathematica interprets the expression "p2=" p2 as a multiplication. To 
get what you want you could use
Row[{"p2=", p2}] instead.

Heike.

On 13 Aug 2011, at 12:47, Massimiliano LANDI wrote:

> 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

[toc] | [standalone]


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


csiph-web