Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #10187
| From | "Kevin J. McCann" <kjm@KevinMcCann.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Slow Locator in Manipulate |
| Date | 2012-05-23 07:29 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <jpi3lf$4rt$1@smc.vnet.net> (permalink) |
The following is a simple example of the use of a Locator on a graphic:
p1 = ContourPlot[
Sin[x y], {x, -3 \[Pi], 3 \[Pi]}, {y, -3 \[Pi], 3 \[Pi]},
ContourShading -> False];
Manipulate[
Show[p1, Graphics[{Red, AbsolutePointSize[5], Dynamic@Point[pt1]}],
PlotRange -> {{-3 \[Pi], 3 \[Pi]}, {-3 \[Pi], 3 \[Pi]}}],
{{pt1, {0, 0}}, {-3 \[Pi], -3 \[Pi]}, {3 \[Pi], 3 \[Pi]}, Locator}
]
I find that the Locator moves slowly and in a jerky fashion; however, if
I leave the underlying plot, i.e. p1, out of the Show, then it moves as
I would expect. I had thought the use of Dynamic on the Point would keep
Mathematica from constantly redrawing the graphic, but my guess is that the
slowness indicates this is not the case.
Anyone have an idea about how to make the locator move faster?
Thanks,
Kevin
Back to comp.soft-sys.math.mathematica | Previous | Next — Next in thread | Find similar | Unroll thread
Slow Locator in Manipulate "Kevin J. McCann" <kjm@KevinMcCann.com> - 2012-05-23 07:29 +0000 Re: Slow Locator in Manipulate "Kevin J. McCann" <kjm@KevinMcCann.com> - 2012-05-25 08:59 +0000
csiph-web