Making data plots
    dunbarx at aol.com 
    dunbarx at aol.com
       
    Sun Sep  7 20:38:09 EDT 2014
    
    
  
Hi.
Would the "copy" command be useful to you? You can designate a group as the target.
Craig Newman
-----Original Message-----
From: William Prothero <prothero at earthednet.org>
To: Use-livecode Use-livecode <use-livecode at lists.runrev.com>
Sent: Sun, Sep 7, 2014 4:50 pm
Subject: Making data plots
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/
_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode
 
    
    
More information about the use-livecode
mailing list