Tag Info

New answers tagged

2

Rough approach: Tooltip resources are stored in FileNameJoin[{ $InstallationDirectory, "SystemFiles", "FrontEnd", "TextResources", "ToolTip.tr"}] In order to not mess with installation directory you can copy this file to $UserBaseDirectory/SystemFiles... and replace labels you want. For example: @@resource ToolTipCut Cut (replace this line ...


1

data = Transpose@{DateRange[Today, DatePlus[{9, "Week"}], "Week"], RandomReal[{25.5, 50.8}, 10]}; Using ToString avoids the problem: DateListPlot[ Function[{pair}, Tooltip[pair, ToString[NumberForm[pair[[2]], {3, 1}]]]] /@ data, Joined -> False, Filling -> Axis] Or, more compactly: DateListPlot[Tooltip[#, ToString[NumberForm[#[[2]], {3, ...


3

Add a dummy graphic to each mesh line with the appropriate tooltip label and combine them via post-processing: ParametricPlot[{u Cos[v], u Sin[v]}, {u, 1, 2}, {v, 0, Pi/2}, Mesh -> { Table[{u, Tooltip[Null, u]}, {u, 1, 2, 0.25}], Table[{v, Tooltip[Null, v]}, {v, 0, Pi/2, Pi/12}]} ] /. {g___, Tooltip[_, label_], l__Line} :> {g, Tooltip[{l}, ...


4

In Comments above, the OP requested that values be displayed only for mesh points. This can be accomplished as follows, using Annotation. Show[ParametricPlot[{Cos[u]^v, u}, {v, 0, 1}, {u, 0, Pi/2}, Mesh -> {5, 5}, FrameLabel -> {Cos[u]^v, u}], ListPlot[Quiet@Table[Annotation[{Cos[u]^v, u}, {N[v], N[u]}, "Mouse"], {v, 0, 1, ...


3

A much more versatile "do-it-yourself" tooltip can be achieved from ParametricPlot[{Cos[u]^v, u}, {v, 0, 1}, {u, 0, Pi/2}, Mesh -> {5, 5}, FrameLabel -> {Cos[u]^v, u}, ImagePadding -> {{60, 90}, {40, 10}}, PlotRangeClipping -> False, Epilog -> Inset[Framed[Style[Dynamic[{Log[First@mouse]/Log[Cos[Last@mouse]], Last@mouse}], ...



Top 50 recent answers are included