LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a Bubble Motion Graph?

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.

0 Kudos
Message 1 of 7
(3,584 Views)

Hi,

 

You have to create an array before bundle the "plots".

 

Try it now.

 

Paul

Message 2 of 7
(3,571 Views)

 

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?

 

0 Kudos
Message 3 of 7
(3,544 Views)

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

0 Kudos
Message 4 of 7
(3,534 Views)

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

 

Message 5 of 7
(3,529 Views)

A couple of other options:

 

  1. The XY graph has the ability to have picture objects added to them at specific locations.  You can use this to plot circles of whatever size you want wherever you want.  The implementation varies with the version of LabVIEW (with newer ones, it is a property Plot Images.xxx, with older ones, you bundle the image with the data).
  2. 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.

 

Message 6 of 7
(3,508 Views)

 


@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

0 Kudos
Message 7 of 7
(3,479 Views)