12-18-2007 11:04 AM
12-18-2007 01:32 PM
12-21-2007 02:50 AM
12-21-2007 02:58 AM - edited 12-21-2007 02:59 AM
Mannie wrote:
It should be not good question but I've been trying to attach or put the picture in here. I don't know how to do it.

12-21-2007 03:42 AM
12-21-2007 03:50 AM - edited 12-21-2007 03:54 AM
12-24-2007 08:31 AM
Hi again, I can now put some messages on the XY graph by using plot image but when I pan and zoom in or out, the graph the messages on the graph cannot move with graph coordinates. Do u know how to stick messages with graph coordinates
12-24-2007 11:13 AM
For this purpose, "annotations" are better than "plot images", so please open your example finder and search for keyword "annotation".
(If you want to stay with plot images, you need to recalculate the positions whenver the scaling changes. this is also not a real problem if you use an event structure).
12-25-2007 08:33 AM
Hi altenbach,
Im trying to use annotation as recommend but I don't know why I get stuck with replace array. The output of replace array still has 0 value.
Is there anything Im done wrong???
Thanks a lot for ur help
12-25-2007 01:18 PM
You start out with an array of zero size. Since replace array subset does not change the size of an array, you stay with zero annotations. If nothing is there, you cannot replace it. 😄
Possible solutions:
(A) Instead of reading the current annotation list (which is zero!), you could initialize the shift register with a diagram constant (right-click...create constant), expand it to the desired number of elements and make them all e.g. with a blank text.
(B) Alternatively, you can manually create the desired number of annotation by right-clicking on the graph and select "data operations...create annotations". Now you start of with an array of the correct size if you read the annotation list with a property node and you can replace them programmatically with new annotations as desired.
(C) You can also initialize the shift register with an empty array, then use built array to add annotations.