-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Real-time updating of plot data #30
Comments
👍 I started messing around with plotting methods for OnlineStats, so this would be great. |
Better call it 'near-real-time' updating, or 'Update Data'. People would expect real-time plotting and for e.g. a PDF output that's hard to do... |
@joshday Cool... are you working on the "josh" branch? I have some ideas there... maybe we should start an issue to discuss at OnlineStats? @lobingera I hear ya... certainly the degree of "real-time-ness" depends on the backend. Likely UnicodePlots and Gadfly aren't good for this, but any of the others could be? |
But it like this: real-time-update sounds like you connect some data with some graph and if the data is updated, the graph follows. Actually earlier (some months ago) i asked if the REPL can support this -> filter, what has been changed (LHS of evaluation,assignment) and feed that information somewhere. Back then the REPL wasn't able, but maybe now. In any case you need some infrastructure to get that change down. How about auto-scaling in cases like this? |
This is exactly what I want to do, and the prototype can already work this way. You can just call This currently works as expected (on master)... one extra point is added to the graph every half-second:
|
as a side question: why immerse!() ? I thought, ! methods are supposed to change the argument, and there's little argument |
@lobingera My interpretation of |
Also technically speaking the |
Statefull vs. stateless plot commands is a tricky thing. Statefull makes great sense in REPL, but not necessarily in scripted plotting. And maybe this discussion should be in #1 |
I don't think I understand your point. Why is REPL any different than scripting here? |
In regards to the real-time-ness discussion, I ran a quick test... 17 millis per update may not be "real-time" but it's certainly close enough for most applications (and certainly better than re-writing a PDF every time). However, in most cases you wouldn't update the display after every data point unless the points were updating very slowly. |
@tbreloff |
You can always call plot!(plt, args...; kw...) and control which object's state is changed...
|
I have pretty good support for updating plots now, so closing this. |
Is there a way to push errorbars or ribbons?
If not is there a workaround?
|
|
Well, I think |
If you give an MWE I wouldn't mind commenting on what you're doing. But |
Ha, I didn't realize you could do that :-) I just looked at the code, and no, it doesn't seem like you can do that, sry. |
I have a plot for each of a 100 samples run for 1000 iterations, so it creates an array of 100 plots. How is it possible to merge these into one plot ? Thank you for your inputs |
[WIP] Add population analysis with error bars across population for continuous plots
I have lots of applications which require adding to or replacing the underlying x/y data in my plots. I want a simple interface which likely overloads base methods like
push!
, etc.Here's a sample prototype (backend is Immerse):
The text was updated successfully, but these errors were encountered: