6
$\begingroup$

Here is an example of what I mean, the tooltip doesn't show most of the requested text ("example" in this case).

enter image description here

There is more information about my code in my previous question: show contour area as tooltip.

However, I made this post to address the display issue with the tooltip which is likely a broad problem.

Here is the code from the symptomatic screenshot I showed.

w = 4;
plot = ContourPlot[
    Sqrt[(x - 2)^2 + (y - 2)^2 - 5], {x, -15, 15}, {y, -15, 15}, 
    PlotPoints -> 30, MaxRecursion -> 4, Contours -> {w}, 
    ContourStyle -> Blue, ImageSize -> 250] /. _Polygon -> 
    Sequence[] /. Tooltip[x_, y_] :> Tooltip[x, "example"]  

Which can be simplified to just

ContourPlot[
   Sqrt[(x - 2)^2 + (y - 2)^2 - 5], {x, -15, 15}, {y, -15, 15}, 
   Contours -> {4}] /. _Polygon -> Sequence[] /. 
 Tooltip[x_, y_] :> Tooltip[x, "example"]  

and still have the same issue with the tooltip not showing.

I have tried adding a Pane wrapper around "example" within the argument of the last Tooltip, but this hasn't helped.

$\endgroup$
3
  • 3
    $\begingroup$ This example works well on Win7 V9.0.1.0 but I've faced this issue. And it was not stable, sometimes it occures, sometimes not. $\endgroup$
    – Kuba
    Jan 16, 2014 at 21:27
  • $\begingroup$ I cannot reproduce this behavior with the code in the question both in Mathematica 8.0.4 and 9.0.1 under Windows XP SP3. But I faced similar problems when used non-standard fonts for Text inside Graphics. $\endgroup$ May 29, 2014 at 18:05
  • 1
    $\begingroup$ In order to reproduce this issue could you provide your PC's specs: Mma version, OS version, service pack level, video card and etc. I cannot reproduce the cut off tooltip with this example either. $\endgroup$
    – WolframFan
    Jun 4, 2014 at 1:48

1 Answer 1

6
$\begingroup$

It's a bug. Wolfram is aware of it but has not chosen to fix it.

Sometimes I restart Mathematica to deal with it. If I am running something, for example, in a Manipulate function, I clear the local variables every time it is run. This helps most of the time.

Jeff

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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