Replies: 2 comments
-
This is an area of fast development. In the current version you can already achieve something close to this out-of-the-box using It would look something like this: Attached as a zip file: To plot multiple line series Packing values into an X,Y structure: new(
Math.Cos(it * 0.1) * 800 + 800 as X,
Math.Sin(it * 0.1) * 500 + 500 as Y) Packing multiple X,Y values into a multi-series structure: new(
Item1 as Mouse,
Item2 as Boundary) To set axis boundaries in the current version you have to open the line graph visualizer, right-click on the plot and disable the auto settings and optional set the capacity. Starting from 2.7 it will be possible to set these parameters directly in the We are actively brainstorming future options for these nodes to make them even more flexible from within the language itself, but you can always make your own using the ZedGraph library. Here are the docs. And for examples you can look at the ZedGraph GitHub or maybe just look at the implementation of the |
Beta Was this translation helpful? Give feedback.
-
I want to combine multiple plots into one - mainly to save window space and to be able to control line thickness etc. with I had a quick look at ZedGraph, but it seems even their tutorials are down / cannot be found (?). Is there any documentation written for implementation in Bonsai / a simple example? |
Beta Was this translation helpful? Give feedback.
-
I'm working on an application where it would be extremely useful to be able to generate a real-time 2D plot of a bunch of vectors and text.
As far as I see, currently the only option is to drag points onto a canvas, which won't work due to the need to have lines, with multiple colors, arrows, dynamically updated text, and the sheer number of elements I need to plot. I attached a napkin drawing of the kind of plot I'm looking to make.
The ideal situation as far as my particular application is concerned would be a python node that gives me access to some existing plotting library - does this already exist or could be made with reasonable effort? I imagine there's a broader need to make real time plots of this nature to show task states, animal locations, etc. at a glance.
Beta Was this translation helpful? Give feedback.
All reactions