more on wxPyPlot

You can plotCanvas.clear() between draws to start fresh each time. You can always add/Draw more PlotGraphics on the plotCanvas. To add and remove "layers", you must use multiple DCs. I saw an example off Google...

Ray

My code snip:
if(fileIndex>1):
     self.twoDplotCanvas.Draw(
         PlotGraphics([plotLines[0],plotLines[1]],
             "Data plots", "Hz", "G"),
             xAxis = None, yAxis = None, dc = None)
     diffArray[:,0] = Numeric.arange(0, frequency_range,
                                     frequency_range/400)
     dataDiffLine = PolyLine(diffArray,
                             legend='Difference',
                             colour=colours[2])
     self.plotCanvas_Difference.Draw(
         PlotGraphics([dataDiffLine],
                       newList[0]+" minus "+newList[1], "Hz", "G"),
                       xAxis = None, yAxis = None, dc = None)
else:
     self.twoDplotCanvas.Draw(
         PlotGraphics([plotLines[0]],
                       "Data plot", "Hz", "G"),
                       xAxis = None, yAxis = None, dc = None)
     self.plotCanvas_Difference.Clear()

···

At 12:51 PM 10/30/2003 +0100, you wrote:

Is it posible draw a empty plot? a white PlotCanvas? I only can draw a
canvas after defining a graphic. What is the way drawing points
incrementally; i mean, i am getting the points from outside and i want to
plot the points each time i get one and refresh the plot.