# Get rid of the tooltip in contour plots

When I plot a curve using ContourPlot, and then move the cursor near the plotted line, a pop-up window (tooltip) with the corresponding function formula appears.

Very often I find it distracting, especially when the pop-up window is large and I want to get the coordinates.

How can I disable this?

In ContourPlot, ContourLabels -> None.

• And can I disable this after I have done my plot? – Agnieszka Sep 5 '17 at 8:47
• @Agnieszka Try replacing Tooltip with (#&) in the output (see ReplaceAll). – Szabolcs Sep 5 '17 at 8:48
• Sorry, but I don't understand your last comment. Assume that I have plotted ContourPlot[x^2+y^2==1,{x,-1,1},{y,-1,1}]. What should I do afterwards to prevent pop-up window? – Agnieszka Sep 5 '17 at 8:52
• Did you look up ReplaceAll? plot /. Tooltip -> (#&). – Szabolcs Sep 5 '17 at 8:53
• You should read about graphics, see Tooltip (under Scope section in documentation page), ReplaceAll, and pure functions to understand why this works. I am assuming you already know that everything is an expression. – Szabolcs Sep 5 '17 at 8:58

@Agnieszka
The idea of Szabolcs can be used this way:

p = ContourPlot[x^2+y^2==1,{x,-1,1},{y,-1,1}];
p /. Tooltip -> (#&)


Pavel

• Same as Szbolcs' comment: mathematica.stackexchange.com/questions/155073/… – Michael E2 Mar 8 '20 at 19:53
• Yes, but Agnieszka did not understand his answer. – Pavel Mar 9 '20 at 20:12
• It would be polite to acknowledge Szabolcs' contribution, though, wouldn't it? – Michael E2 Mar 9 '20 at 20:16
• Yes, you are right. Thank you for the point. – Pavel Mar 10 '20 at 21:43