Making data plots

William Prothero prothero at earthednet.org
Sun Sep 7 16:49:20 EDT 2014


Folks:
I’ve been working on an app that plots various kinds of data. For some of the data, where I need a line plot, I create lines, boxes, labels, etc, and after they are displayed, I take a snapshot of the graphic and then delete the objects that I used to create the plot. So far, as a beginning live coder, I’ve just stored the names of the graphic elements of the plot in an array, then deleted them using the array entries. But, it seems, as the plots are getting more complex, that it might be easier or more efficient to put the objects for a single plot into a group, then I can delete the entire group in one operation.

The dictionary has some entries on creating groups, but I can’t find anything about adding a single object to a group. I want to do this so that each time an element of the plot is created, it is added to the group. That way, I don’t have to keep track of the objects myself. Is there a tutorial where I can find this information?

Also, I am assuming that if I delete a group, all of the objects in it are also deleted.

Best,
Bill

William A. Prothero, Ph.D.
University of California, Santa Barbara Dept. of Earth Sciences (Emeritus)
Santa Barbara, CA. 93105
http://es.earthednet.org/






More information about the use-livecode mailing list