# Dynamic plotting of NonlinearSolve controlled by sliders in Makie

**URL:** https://discourse.julialang.org/t/dynamic-plotting-of-nonlinearsolve-controlled-by-sliders-in-makie/126737
**Category:** Visualization
**Tags:** makie, nonlinearsolve
**Created:** [March 9, 2025, 9:12pm UTC](https://discourse.julialang.org/t/dynamic-plotting-of-nonlinearsolve-controlled-by-sliders-in-makie/126737 "2025-03-09T21:12:42Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mehdi\_MABED](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mehdi_mabed/32/52904_2.png) [@Mehdi\_MABED](https://discourse.julialang.org/u/Mehdi_MABED)
#### Post date: [March 9, 2025, 9:12pm UTC](https://discourse.julialang.org/t/dynamic-plotting-of-nonlinearsolve-controlled-by-sliders-in-makie/126737/1 "2025-03-09T21:12:42Z")

</div>

I want to solve a non linear problem which depend on 3 variables, each one of them being controlled by a slider in Makie and I struggle with that.

My non linear function takes an input number (the x coordinate) with 3 parameters (each controlled by a Makie slider) and outputs a number (a y coordinate), and I want to solve it with the NonlinearSolve library such that when I move my sliders my output (which is calculated by NonlinearSolve) gets dynamically changed.

Ideally, I would also like it to be able to solve the problem for multiple inputs at the same time (using NonlinearSolve in a vectorized way), avoiding to write a for loop and being more optimized ^^

---

<div class="post-metadata">

### Author: ![ChrisRackauckas](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/chrisrackauckas/32/77_2.png) [@ChrisRackauckas](https://discourse.julialang.org/u/ChrisRackauckas)
#### Post date: [March 10, 2025, 12:12am UTC](https://discourse.julialang.org/t/dynamic-plotting-of-nonlinearsolve-controlled-by-sliders-in-makie/126737/2 "2025-03-10T00:12:07Z")

</div>

what did you try?
