# Callback function in a plot library

**URL:** https://discourse.julialang.org/t/callback-function-in-a-plot-library/52826
**Category:** General Usage
**Tags:** question, plotting
**Created:** [January 4, 2021, 3:24pm UTC](https://discourse.julialang.org/t/callback-function-in-a-plot-library/52826 "2021-01-04T15:24:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Ortley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/david_ortley/32/7845_2.png) [@David\_Ortley](https://discourse.julialang.org/u/David_Ortley)
#### Post date: [January 4, 2021, 3:24pm UTC](https://discourse.julialang.org/t/callback-function-in-a-plot-library/52826/1 "2021-01-04T15:24:39Z")

</div>

Hey all,

I want to create a plot that will will have clickable elements that do some active thing. My interest is in plotting a scatter plot of certain features from a set of waveforms that, when individual elements are clicked, will plot a source waveform from that selected feature in either another window or a secondary place of some sort.

I believe Python’s Bokeh library has a similar capability in the form of a callback function that you can pass to your plot call. Is there something similar in any of the Julia plotting libraries?

Thanks.

-David O.

---

<div class="post-metadata">

### Author: ![mariok90](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mariok90/32/7076_2.png) [@mariok90](https://discourse.julialang.org/u/mariok90)
#### Post date: [January 6, 2021, 7:12am UTC](https://discourse.julialang.org/t/callback-function-in-a-plot-library/52826/2 "2021-01-06T07:12:47Z")

</div>

Have you checked out  
[Interact.jl](https://github.com/JuliaGizmos/Interact.jl) + [Plots.jl](https://github.com/JuliaPlots/Plots.jl)  
or  
[PlotlyJS.jl](https://github.com/JuliaPlots/PlotlyJS.jl) + [Dash.jl](https://github.com/plotly/dash.jl)?  
The latter is probably more similar to Python’s Bokeh.

---

<div class="post-metadata">

### Author: ![David\_Ortley](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/david_ortley/32/7845_2.png) [@David\_Ortley](https://discourse.julialang.org/u/David_Ortley)
#### Post date: [January 11, 2021, 5:06pm UTC](https://discourse.julialang.org/t/callback-function-in-a-plot-library/52826/3 "2021-01-11T17:06:14Z")

</div>

Thanks for the suggestions.

I don’t think Interact + Plots is what I’m looking for, but the PlotlyJS + Dash option might be.
