clear; clf;
nx=200;
x=linspace(-2.5,2.5,nx);
F=sin(pi*x).^2;
plot(x,F,'k','linewidth',1.5);
axis image
axis([x(1) x(end) -0.1 1.4])
text('Interpreter','latex','String','$$ \phi $$','Position',[1.7 -0.25],'fontsize',17);
text('Interpreter','latex','String','$$ \sin^2(\pi \phi) $$','Position',[-0.32 1.15],'fontsize',17);
set(gca,'fontsize',13) 
grid on
set(gcf,'PaperPositionMode','auto')