Clearing Plotting before running siumlation

I am messing around with the .plot command. Is there a command to automatically clear the plots when a new simulation is run? Something similar to what Matlab has with the “close all; clc; clear” functions people normally put at the start of their scripts.

If not it will be very useful in insuring I only plot what I call out in my .plot commands when I use this clear command so I don’t have to constantly delete the plots I don’t explicitly call out with the plot function.

No, there isn’t. The .plot command is only used as a fall back. QSPICE will still plot what you already have plotted when you rerun a simulation. If you run a simulation for the first time, if there is a .pfg file, it will use that.