pushdisplay
pushdisplay(d::Display)
Pushes a new display d on top of the global display-backend stack. Calling display(x) or display(mime, x) will display x on the topmost compatible backend in the stack (i.e., the topmost backend that does not throw a MethodError).
Examples
jldoctest
julia> using CairoMakie
julia> fig = Figure();
julia> ax = Axis(fig);
julia> pushdisplay(fig)
The example above demonstrates how to use the pushdisplay function with the CairoMakie package. It creates a new figure, an axis, and then pushes the figure onto the display-backend stack using pushdisplay. This allows subsequent calls to display(x) or display(mime, x) to display objects on the topmost compatible backend in the stack.
Note: The example assumes that the CairoMakie package is already installed and properly imported.
See Also
:@printf, :@sprintf, display, displayable, dump, info, isprint, print, println, print_escaped, print_joined, print_shortest, print_unescaped, print_with_color, pushdisplay, redisplay, show, showall, showcompact, sprint, versioninfo,User Contributed Notes
Add a Note
The format of note supported is markdown, use triple backtick to start and end a code block.