Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

When the mouse pointer passes over the Locator graphic (or one clicks at any point in the frame), the underlying equation that generates the ContourPlot is visible in a text box. How can I suppress this output? Here is the code.

Manipulate[
iv = Row[{"t0 = " , N[p[[1]], 3], ", ", "x0 = " , N[p[[1]], 3]}];

 ContourPlot[(x - t - 1) Exp[x - p[[2]]] == 
   p[[2]] - p[[1]] - 1, {t, -6, 6}, {x, -6, 6}, 
  PerformanceGoal -> "Quality", BaseStyle -> {FontSize -> 14}, 
  FrameLabel -> {t, x}, RotateLabel -> False, 
  ContourStyle -> Directive[Red, Thick],
  Epilog -> {Point[p], Text[iv]}
  ],
 {{p, {-2, -2}}, {-10, -10}, {10, 10}, Locator,
  Appearance -> Graphics[{Blue, Disk[{0, 0}, .1]}, ImageSize -> 14]}]
share|improve this question
    
You have syntax error. !Mathematica graphics –  Nasser Dec 23 '13 at 21:17
    
You misssbellling the word Manipulate in the code above. –  Nasser Dec 23 '13 at 21:51
    
Thanks Nasser but the spelling of Manipulate is not the problem. –  Stephen Dec 23 '13 at 21:57
    
thanks for correcting the spelling. Yes I know it was not the problem, but for futures visitors so they do not have to think it is a new command or something when they look at the code. –  Nasser Dec 23 '13 at 22:06
    
@Stephen Your last edit cut the question from the text. I put it back. Make sure it's what you want. –  Michael E2 Dec 24 '13 at 1:36
add comment

1 Answer 1

up vote 1 down vote accepted

Add CountourLabels-> None:

Manipulate[

 iv = Row[{"t0 = ", N[p[[1]], 3], ", ", "x0 = ", N[p[[1]], 3]}];
 ContourPlot[(x - t - 1) Exp[x - p[[2]]] ==  p[[2]] - p[[1]] - 1, {t, -6, 6}, {x, -6, 6}, 
  PerformanceGoal -> "Quality", BaseStyle -> {FontSize -> 14}, 
  FrameLabel -> {t, x}, ContourStyle -> Directive[Red, Thick], ContourLabels -> None, 
  Epilog -> {Point[p], Text[iv]}], {{p, {-2, -2}}, {-10, -10}, {10, 10}, Locator, 
  Appearance -> Graphics[{Blue, Disk[{0, 0}, .1]}, ImageSize -> 14]}]
share|improve this answer
    
My bad> I left ut the opening Manipulate command. See edited code –  Stephen Dec 23 '13 at 21:44
    
@Stephen Have you checked my code? –  belisarius Dec 23 '13 at 21:46
    
I confirmed your code. It works. V 9.01, No output when mouseover. –  Nasser Dec 23 '13 at 21:53
    
@Nasser Thanks! –  belisarius Dec 23 '13 at 21:58
    
belisarius - I hadn't noticed your addition to the code. It works nicely now. –  Stephen Dec 23 '13 at 22:24
add comment

Your Answer

 
discard

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.