Bug introduced in 8.0 or earlier and persists through 11.3

It affects all event based wrappers for affected primitives. E.g. EventHandler. Which makes it a big limiting factor.

If you find that problem a serious one, please report it too!

Problem reproduced on Win10 with V10.4.1, V11.0.0

A support case with the identification [CASE:3698391] was created

[...] There appears to be an issue with Tooltip in your second graph. It has been reported on your behalf, to our developers. [...]

Areas covered by Tooltip are incorrect when we Scale primitives those Tooltips are wrapping:

data1 = RandomReal[250, 250];
data2 = RandomReal[250, 250];

hist = Histogram[<|"d1" -> data1, "d2" -> data2|>, Frame -> True, 
  ImageSize -> 600];

  Graphics[Scale[hist[[1]], {1, 1/250}, {1, 0}], 
   AspectRatio -> 1/GoldenRatio, Frame -> True, ImageSize -> 600]}, 

Old gif but reduced code gives the same issue. enter image description here

As you can see, in the right, scaled plot, Tooltips are triggered outside rectangles. For more complicated visualizations it makes them useless.

It affects EventHandlers, CurrentValue["MouseOver"] etc. too. ScalingTransform behaves the same.

Any insights? Workarounds?

  • 2
    $\begingroup$ Reproduced with versions 8.0.4, 10.4.1 and 11.0.0 on Win7 x64. $\endgroup$ – Alexey Popkov Aug 30 '16 at 9:56
  • $\begingroup$ Instead of scaling coordinates in graphics primitives you can of course scale the data before generating them, but you knew that. $\endgroup$ – masterxilo Aug 31 '16 at 1:45
  • $\begingroup$ @masterxilo yep, the background is that I want to scale it dynamically and replotting is too expensive. $\endgroup$ – Kuba Aug 31 '16 at 5:54

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.