MATLAB: How to get the tick marks all the way around the graph

axesMATLABplottick marks

Here is my code:
figure; %Fig. 5: Cluster snapshot at t_final
hold on;
plot(indeces(1:n), mod_X_L_final(1:n), 'Color',nColor, 'Linestyle','none', 'Marker','.', 'MarkerSize',20);
plot(indeces(n+1:n+m), mod_X_L_final(n+1:n+m), 'Color',mColor, 'Linestyle','none', 'Marker','.', 'MarkerSize',20);
set(gca, 'fontsize', 20, 'fontname', 'times');
ax1 = gca;
ax1.XTick = linspace(1,n+m,n+m);
ax1.YTick = [0, pi/2, pi, 3*pi/2, 2*pi];
ax1.YTickLabel = {'0','\pi/2','\pi','3\pi/2','2\pi'};
ylim([0, 2*pi]);
That gives me the following:
I do not understand why the tick marks only show on the bottom and the left. I want them to show all the way around the chart. How do I do this?

Best Answer

Actually I figured it out. I just have to include the line:
box on;