Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Before adding a Locator to a Manipulate, I can easily print or export the result using a context menu:

enter image description here

But after adding a Locator, I can't even get a context menu to appear. How do I enable graphics generated with Locators so that the context menu functionality is restored?

     Show[ParametricPlot[BezierFunction[{{0, 0}, c1, {1, 1}}][x], {x, 0, 1}]],
    {{c1,{.2, .2}}, Locator}]
share|improve this question
It's not about Manipulate, the same behaviour can be seen in a simple Graphics object, as the Locator intercepts all mouse events: try this: {Graphics[{Circle[]}], Graphics[{Circle[], Locator[{0, 0}]}]}. I'm thinking of an easier workaround than creating an EventHandler in a DynamicModule... – István Zachar Oct 29 '12 at 20:20
It probably uses Deployed to make it unselectable so that there is no ambiguity as to whether a click meant "move the locator" or "select the figure". Have you tried clicking the + and selecting "Paste Snapshot"? – R. M. Oct 29 '12 at 20:21
@rm-rf: Can I just set Deployed to False somewhere when I disable the Locator? If so, it's not clear where. – raxacoricofallapatorius Oct 29 '12 at 20:43

Maybe not the best solution but it exports.

nb = CreateDocument[{Manipulate[
       BezierFunction[{{0, 0}, c1, {1, 1}}][x], {x, 0, 
        1}]], {{c1, {.2, .2}}, Locator}]}];
NotebookPrint[nb, "temp.pdf"]
share|improve this answer
As I understand the question it's not about the export functionality itself rather it is about getting the context menu that contains it. – Sjoerd C. de Vries Oct 29 '12 at 20:53
This is helpful. Better along these lines would be to img=Show... and then add Row[{Button["Print", NotebookPrint[img]]}]. – raxacoricofallapatorius Oct 29 '12 at 20:58
@Sjoerd C. de Vries the title states print or export ... – s.s.o Oct 29 '12 at 21:31
Yeah, but the body text (the actual question) says: "How do I enable graphics generated with Locators so that the context menu functionality is restored?" – Sjoerd C. de Vries Oct 29 '12 at 21:32
Body or title :)))) – s.s.o Oct 29 '12 at 21:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.