Question: How can I redisplay the same plot with changed data?

Working with a Document, I have a procedure which plots a graph and part of the procedure code looks like this:

with(plots)
A := Array(1)
A := plot(...plots two series...):
display(A)

The first time the procedure is called everything is as expected.  The second time the procedure is called (with different values to be plotted), the graph is not updated and therefore does not reflect the changed data

I am thinking that maybe, each time I call the procedure, I need to somehow "reset" or "release" something at the beginning of the procedure so that the plot is recreated? 

Please Wait...