You can modify the content of an XY plot by adding and removing charts, and adding existing curves. You can also create new curves, change the abscissa for curves, and negating curves.
Adding and Removing Charts, and Erasing the Content of Charts Creating Charts, with Titles, by Scripting Adding External Curves Adding Curves or Creating New Curves From Existing Data Plotting Variable Selections Plotting Figure Annotations Creating Scatter Plots by Scripting Changing the Abscissa Negating Curves Removing Curves Removing Plots