MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

showing variables in plots?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg70021] showing variables in plots?
  • From: Sam Waller <sam.waller at avmet.com>
  • Date: Sat, 30 Sep 2006 05:12:56 -0400 (EDT)

I'm plotting something like this:

x = 2;

curve = Plot[...., DisplayFunction -> Identity];

txt = Graphics[ Text["x = 2", {10, 10},....] ];

Show[curve, txt, DisplayFunctio->$DisplayFunction, ...];

The problem is that I want 'txt' to automatically change if I assign a different value to x so that
I don't have to edit txt everytime I change the variable x. Something like printf() in C. Can this
be done in mathematica?

thanks,
Sam


  • Prev by Date: [RESEND] has anyone had any problems execting Get on a notebook that is open in Wolfram Workbench
  • Next by Date: Re: Vector operations,
  • Previous by thread: [RESEND] has anyone had any problems execting Get on a notebook that is open in Wolfram Workbench
  • Next by thread: convergence checking