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

@demo with CompositePlot...how to see both plots? #7

Open
rkurchin opened this issue Jul 29, 2020 · 0 comments
Open

@demo with CompositePlot...how to see both plots? #7

rkurchin opened this issue Jul 29, 2020 · 0 comments

Comments

@rkurchin
Copy link

rkurchin commented Jul 29, 2020

I'm trying to do a @demo visualization with some sliders that affect the output on two different plots, but I can't seem to get it to display both plots at the same time.

Here's some pseudocode to give you an idea of what I'm doing and what I've tried:

@demo for a in a_min:a_step:a_max, b in b_min:b_step:b_max
    calc_results = do_some_calculations(a, b)
    p1 = plot(calc_results)
    plot!(p1, more_stuff)
    p2 = plot(whatever_else)
    plot!(p2, even_more_stuff)
    # now here are several things that *don't* work...
    plot(p1, p2) # this gives only the sliders and the second plot
    CompositePlot([p1, p2]) # same thing, just sliders and p2
    show(CompositePlot([p1, p2]) # this gives a TON of text that gets truncated
end

Is this a bug or do I have the syntax wrong?

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

No branches or pull requests

1 participant