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


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

Impossible to move objects in dynamic graphics

Started bynicolas@virtualdynamics.fr
First post2011-11-04 11:12 +0000
Last post2011-11-05 09:48 +0000
Articles 2 — 2 participants

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


Contents

  Impossible to move objects in dynamic graphics nicolas@virtualdynamics.fr - 2011-11-04 11:12 +0000
    Re: Impossible to move objects in dynamic graphics Silvia <wyelen@gmail.com> - 2011-11-05 09:48 +0000

#6186 — Impossible to move objects in dynamic graphics

Fromnicolas@virtualdynamics.fr
Date2011-11-04 11:12 +0000
SubjectImpossible to move objects in dynamic graphics
Message-ID<j90hav$so3$1@smc.vnet.net>
Since version 8 it is no more possible to move objects with dynamic
positions in a dynamic graphics.

For example in the graphics below, the text and the point can be
moved :

p = {-.5, 0}; q = {.5, 0}; {Dynamic@p, Dynamic@q}
Graphics[{Text["TEXT", Dynamic[p]], AbsolutePointSize[10],
  Point[Dynamic[q]]}, PlotRange -> 1]

But not in that one which is just wrapped in a Dynamic

Dynamic@Graphics[{Text["TEXT", Dynamic[p]], AbsolutePointSize[10],
  Point[Dynamic[q]]}, PlotRange -> 1]

I expect that to work. Is it a bug ? Or if something has been changed,
how can I now get back to previous (good) behaviour ?

Thanks

Nicolas

[toc] | [next] | [standalone]


#6193

FromSilvia <wyelen@gmail.com>
Date2011-11-05 09:48 +0000
Message-ID<j930q4$a7j$1@smc.vnet.net>
In reply to#6186
maybe you wrap them in Locators:

p = {-.5, 0}; q = {.5, 0};
{Dynamic[p], Dynamic[q]}
Graphics[{
  Locator[Dynamic[p], "TEXT"], 
  Locator[Dynamic[q], 
   Graphics[{AbsolutePointSize[10], Point[Dynamic[q]]}]]}, 
 PlotRange -> 1]

[toc] | [prev] | [standalone]


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


csiph-web