Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: problem with Inset moving text

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85551] Re: problem with Inset moving text
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 13 Feb 2008 06:57:19 -0500 (EST)
  • Organization: Uni Leipzig
  • References: <fouehg$m9f$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

Manipulate[
  Graphics[{Circle[],
    Inset[Style[
      StringJoin["value:",
       ToString[
        NumberForm[N[c], {16, 8}, NumberPadding -> {" ", "0"},
         NumberSigns -> {"-", " "}]]], Blue, 20]]}], {{c, (2 \[Pi])/3,
    "Value c"}, -1, 2 Pi, 0.001}]

and you should use a mono spaced font, otherwise the different width
of the characters will make problems.

Regards
   Jens

Camille JORDAN wrote:
> I am trying to use Inset but have a problem in 6.0.1
> 
> see this code
> 
> Manipulate[
>  Graphics[
>   {Circle[],
>    Inset[Style[StringJoin["value:", ToString[N[c]]], Blue, 20]]
>    }
>   ]
>  , {{c, (2 \[Pi])/3, "Value c"}, -1, 2 Pi, 0.001}]
> 
> use the slide to go to value 1.609
> and then it jumps into value 1.61
> the problem I have is that the text jumps horizontaly
> 
> any way to make the text fix so it will not jump?
> this happens because the numbers 1.609 and 1.61 are different in leght
> any solution?
> 


  • Prev by Date: Re: Table / TableForm Question
  • Next by Date: Re: open URL programmatically?
  • Previous by thread: problem with Inset moving text
  • Next by thread: Re: problem with Inset moving text