Does this really need to be in a script?
Using Graph Builder, I drag Y to the Y-zone.
I select both X1 and X2 and drag to the X-zone. I turn off the smoother and this is my result:
![Dan_Obermiller_0-1586205516428.png Dan_Obermiller_0-1586205516428.png](https://community.jmp.com/t5/image/serverpage/image-id/22812i6DAD4F98F9C91045/image-dimensions/563x330?v=v2)
Now click the gray triangle next to variables. I can clear either X1 or X2 (they are check boxes) and the graph updates immediately. Clicking again would add that variable back to the plot. I think that the interactive functionality is already there.
![Dan_Obermiller_1-1586205657853.png Dan_Obermiller_1-1586205657853.png](https://community.jmp.com/t5/image/serverpage/image-id/22813i20F684E96838BB88/image-dimensions/558x327?v=v2)
Dan Obermiller