DMelt:Plots/Real-Time Data

From jWork.ORG
Jump to: navigation, search
Limitted access. Reguest membership or login to this link first if you are already a member
Contents

Showing real-time data

All canvas can be used to show data updated in real time. As example, we show how to display a random points, updating the data every 100 ms. Note that we use the method "clearData()", which reloads data container but does not change its graphical attributes. A slower method is "clearAll()" which reloads graphical attributes of the canvas.


The output is shown here:

DMelt example: Histogram filled in real time from a stream of data




You can also use a lighter canvas, "SPlot", which is much simpler and requires less resources.


DataMelt has a special canvas called jhplot.HPlotRT which is designed to show data in real time and fast dynamic rendering. Look at this code:

The output image is below:

DMelt example: Showing real-time data using traces

More information on this topic is in DMelt books