Fixed in 10.1

The InfiniteLine functionality added to version 10 is very handy for obvious reasons, however a Tooltip added to them in Graphics does not display.

For example, evaluating:

Graphics[{Red, Tooltip[Circle[], "Circle"], Green, 
  Tooltip[InfiniteLine[{{-1, -1}, {1, 1}}], "InfiniteLine"], Blue, 
  Tooltip[Line[{{-1, 1}, {1, -1}}], "Line"]}]

And moving the mouse cursor over the green line does not display a tooltip.

  • Is this specific to my set-up Mac OS X (10.9.4) and Mathematica 10.0.1?

  • Is there a workaround (aside from "manually" calculating the line over the plot range)?

NB: This does seem to work in 3D

Graphics3D[{Red, Tooltip[Sphere[], "Sphere"], Green, 
  Tooltip[InfiniteLine[{{-1, -1, -1}, {1, 1, 1}}], "InfiniteLine"], 
  Blue, Tooltip[Line[{{-1, 1, 1}, {1, -1, -1}}], "Line"]}]


As @Kuba points out in the comments in general tooltips are not displayed for 2D ConicHullRegions of which InfiniteLine is a special case.

  • $\begingroup$ Just to confirm, I encounter the same issue with the example code. I'm on Mathematica 10 on Mac OS X 10.10. $\endgroup$ – user22254 Nov 20 '14 at 0:04
  • $\begingroup$ The same in Mathematica 10.0.1 under Win7 x64. $\endgroup$ – Alexey Popkov Nov 20 '14 at 12:17
  • 1
    $\begingroup$ It is ConicHullRegion and it seems that Tooltip does not work with it at all. $\endgroup$ – Kuba Nov 20 '14 at 14:26
  • $\begingroup$ I have reported this to Wolfram support. $\endgroup$ – MikeLimaOscar Nov 20 '14 at 18:40
  • $\begingroup$ Not fixed in 10.0.2. $\endgroup$ – MikeLimaOscar Dec 15 '14 at 17:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.