Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animations #26

Merged
merged 4 commits into from
Aug 13, 2024
Merged

Animations #26

merged 4 commits into from
Aug 13, 2024

Conversation

firasalchalabi
Copy link
Collaborator

@firasalchalabi firasalchalabi commented Jun 5, 2024

Code to test animations:

using SeisMakie, SeisProcessing, CairoMakie

function test_animation()

    orig_d = SeisLinearEvents()
    d = Observable(orig_d)
    pclip = Observable(98)
    cmap = Observable(:seismic)
    ox = Observable(1)

    #fig, ax, img = seisoverlayplot(d, pclip=pclip, cmap=cmap, ox=ox)
    fig, ax = seisPlotTX(d, ox=ox, pclip=pclip, cmap=cmap, style="overlay")


    cmaps = [:seismic, :viridis, :grays, :PuOr]

    record(fig, "animations/seisoverlay_animation.mp4", 0:200, framerate = 30) do p 

        # pclip[] = p
        # cmap[] = cmaps[p % 4 + 1]
        println(p)
        d[] = hcat(orig_d[:, (p)%size(orig_d, 2)+1:end], orig_d[:, begin:(p)%size(orig_d, 2)+1])
        #ox[] = p
        # cmap[] = cmaps[p % 4 + 1]
        # autolimits!(ax)
    end
end

test_animation()

@AtilaSaraiva
Copy link
Member

@firasalchalabi sorry for taking so long. I see that you did a merge instead of a rebase to bring this branch to the HEAD. can you do a rebase?

@AtilaSaraiva
Copy link
Member

I want to create a new release tonight so I just did it myself, sorry for the rush

@AtilaSaraiva AtilaSaraiva merged commit d2ebd0b into SeismicJulia:main Aug 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants