Limitted access. First login to DataMelt if you are a full DataMelt member. Then login to HandWiki as a user.
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:
The method "clearData()" may produce some memory leak if labels for X or Y are should be drawn. It is advised to call "clearLabels()" method, in addition to "clearData()" to avoid a memory leak related to the font creation/destruction of labels.
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: