function [Framenew] = grabplotnew(X1, Y1, xmin, xmax, ymin, ymax)
% Function grabplot saves frame of current state for animation
x0 = xmin:xmax;
y0 = zeros(1,length(x0));
figure(1);
plot(X1,Y1,'ko-',x0,y0);
axis([xmin, xmax, ymin, ymax]);
Framenew = getframe;
end