updating results
is there no way to update plots or results after they are visible without fiddling with events or similar?
var chart = new Chart(); (...) PanelManager.DisplayControl(chart, "Chart"); // seems exactly like chart.Dump(); for (,,){ series.Points.AddY(newValue); Thread.Sleep(100); }
this example will never display anything as it won't finish.
Comments
LINQPad's fluent charting API doesn't allow for this, but the underlying WinForms charting control does. Hence you can do this:
Note that you must use await Task.Delay rather than Sleep, otherwise the message loop that renders the chart will be blocked.
great!
await Task.Delay (time);
did the trick!assuming my infinite example
I tried some but Linqpad behaves differently than console app. What would be the recommended way to interact with running Linqpad code?