Closed timholy closed 3 months ago
You need to run Makie.update_state_before_display!(fig)
before taking the initial ViewState - that instantiates all limits. It's an optimization on the Makie end to avoid loops and extra computation.
Thanks! That didn't seem to be enough, somehow, but I found that
fig = Figure(size=(800, 800), backgroundcolor=:white);
ax = LScene(fig[1, 1]; show_axis=false)
ribbon!(ax, pdbname; colors=[fill(RGBA(ribboncolor, 0.2), length(opsd))], backgroundcolor=:white)
display(fig) # this is critical
seems to work. Then I can do the scatter!
plot and all the fancy view/transparency stuff and it updates nicely.
I presume this is more of a Makie nuance than anything this package needs to fix, so I'll close.
Huh, that's surprising. Probably update_state_before_display
is not implemented properly for LScene - that will have to be fixed.
I'm sure I'm making a complete mess of this, but I'm trying to do a plot in which:
even
set is appearing while anodd
set is vanishing.This makes use of FlyThroughPaths, ProtPlot, and some other machinery. Here's a slightly stripped-down version of the script:
While this is executing I just get a blank screen. It stays that way at the end. But if at the REPL I do
then I get
which is basically what I want. (The purple dots are the locations I'm showing in the even/odd lists.)
The
record
line also records a blank movie.