Makie.jl: compiled makie does not show window

Created on 26 Feb 2019  路  1Comment  路  Source: JuliaPlots/Makie.jl

using PackageCompiler.compile_incremental(:Makie, :StatsMakie, :AbstractPlotting), I'm able to compile and the sample code

x = LinRange(0,3pi,200)
y = sin.(x)
@time lin = lines(x, y, padding = (0.0, 0.0), axis = (
            names = (axisnames = ("", ""),),
            grid = (linewidth = (0, 0),),
        ))

runs in under a second as opposed to ~20 seconds of the JIT version; however, no plot window is shown, and it just returns (the same code with stock sysimg works as expected)

0.390765 seconds (154.33 k allocations: 35.591 MiB, 17.25% gc time)
Scene (960px, 540px):
events:
    window_area: GeometryTypes.HyperRectangle{2,Int64}([0, 0], [0, 0])
    window_dpi: 100.0
    window_open: false
    mousebuttons: Set(AbstractPlotting.Mouse.Button[])
    mouseposition: (0.0, 0.0)
    mousedrag: notpressed
    scroll: (0.0, 0.0)
    keyboardbuttons: Set(AbstractPlotting.Keyboard.Button[])
    unicode_input: Char[]
    dropped_files: String[]
    hasfocus: false
    entered_window: false
plots:
   *Axis2D{...}
   *Lines{...}
subscenes:
   *scene(960px, 540px)

Most helpful comment

This is a known problem caused by precompilation of the display stack. You can either call AbstractPlotting.__init__() on initializing the session, or explicitly display the Scene by using (for your example) display(AbstractPlotting.PlotDisplay(), lin)

>All comments

This is a known problem caused by precompilation of the display stack. You can either call AbstractPlotting.__init__() on initializing the session, or explicitly display the Scene by using (for your example) display(AbstractPlotting.PlotDisplay(), lin)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

daviehh picture daviehh  路  3Comments

Photonico picture Photonico  路  3Comments

AlexisRenchon picture AlexisRenchon  路  3Comments

asinghvi17 picture asinghvi17  路  5Comments

mohamed82008 picture mohamed82008  路  6Comments