04-18-2011 08:50 AM
The purpose is to implement a “Bubble Motion Graph” in LabVIEW similar to the Trendalyzer, Gapminder or Googles Motion Chart implementation. However, they all lack of flexibility in the first column in the data table which has to be date and they are not LabVIEW VIs.
The motion graph wanted is a scatter plot that is updated stepwise with scatter sets to display trends visualized in time. In the VI attached there are three Y-variables (Sine, Cosine and Sinc) and one X-variable. Both colour and size should be added for each Y plot point to display more variables simultaneously.
How to do this programmatically?
The only possibility I have found so far to change the plot size in a XY-graph is to change the line width in 6 levels. In the attached file this is affecting all Ys when active plot is set to plot 0.
Help wanted.
04-18-2011 10:02 AM
Hi,
You have to create an array before bundle the "plots".
Try it now.
Paul
04-19-2011 01:32 AM
Thank you Paul.
This gives me the control of the property node.
Now the remaining question is how plot points could be controlled in more steps than six. The size in the example code uses line width to change size which indirectly effects size.
Is there a way for true size control of the plot points. For ease of use 255 levels would be convenient.
How is this achieved?
04-19-2011 03:02 AM
Hi,
I'm not sure it can be done easy or maybe at all.
If you try to change these parameters using the menus (right-click with the mouse and so on..) you'll see that you have only 6 line types and 6 line widths.
For Point Type there are 16 patterns available.
Paul
04-19-2011 03:37 AM
You might want to look at using a picture indicator to implement this.
There are several examples included with LabVIEW which use the picture indicator as a graph or chart.
"XY Scatter Plots.vi" could maybe be adapted to do what you want
Good luck!
MC
04-19-2011 07:44 AM
A couple of other options:
04-26-2011 09:59 AM
@DFGray wrote:
You can use a 3D graph and plot spheres of varying sizes at the locations you need. You could also modify Z coordinates to get different visualization effects.
That's a great way idea, much better visualisation than 2D.
Will definately be trying that when I get a minute
MC