tooltip
tooltip(position, string)
tooltip(x, y, string)Creates a tooltip pointing at position displaying the given string
Attributes
Generic
visible::Bool = truesets whether the plot will be rendered or not.overdraw::Bool = falsesets whether the plot will draw over other plots. This specifically means ignoring depth checks in GL backends.transparency::Bool = falseadjusts how the plot deals with transparency. In GLMakietransparency = trueresults in using Order Independent Transparency.inspectable::Bool = truesets whether this plot should be seen byDataInspector.depth_shift::Float32 = 0f0adjusts the depth value of a plot after all other transformations, i.e. in clip space, where0 <= depth <= 1. This only applies to GLMakie and WGLMakie and can be used to adjust render order (like a tunable overdraw).space::Symbol = :datasets the transformation space for positions of markers. SeeMakie.spaces()for possible inputs.
Tooltip specific
offset = 10sets the offset between the givenpositionand the tip of the triangle pointing at that position.placement = :abovesets where the tooltipü should be placed relative toposition. Can be:above,:below,:left,:right.align = 0.5sets the alignment of the tooltip relativeposition. Withalign = 0.5the tooltip is centered above/below/left/right theposition.backgroundcolor = :whitesets the background color of the tooltip.triangle_size = 10sets the size of the triangle pointing atposition.outline_color = :blacksets the color of the tooltip outline.outline_linewidth = 2f0sets the linewidth of the tooltip outline.outline_linestyle = nothingsets the linestyle of the tooltip outline.textpadding = (4, 4, 4, 4)sets the padding around text in the tooltip. This is given as(left, right, bottom top)offsets.textcolor = theme(scene, :textcolor)sets the text color.fontsize = 16sets the text size.font = theme(scene, :font)sets the font.strokewidth = 0: Gives text an outline if set to a positive value.strokecolor = :whitesets the text outline color.justification = :leftsets whether text is aligned to the:left,:centeror:rightwithin its bounding box.
Examples
Basic tooltip
using CairoMakie
fig, ax, p = scatter(Point2f(0), marker = 'x', markersize = 20)
tooltip!(Point2f(0), "This is a tooltip pointing at x")
figThese docs were autogenerated using Makie: v0.19.12, GLMakie: v0.8.12, CairoMakie: v0.10.12, WGLMakie: v0.8.16