Boundary of a plot in Matlab 2012b

hello everyone,
I am running Matlab 2012b on Mountain Lion 10.8.2. I have plotted a figure whose code I'm attaching with this message. I can't see axes border around the figure in the plot. I also have same problem when I use similar code for plotting two subplots. In the first subplot I can't see the axes border while in the second subplot I see it. I'm puzzled by this. I tried running the same code on Linux machine but had to choose opengl software command and I see same results. Can anyone suggest something.
Thanks! Naveen
-----------------------------------------------------------
figure(1);
hold on
contourf( omega_p_grid, rr_term, a0_grid, 500, 'Edgecolor', 'none' )
set( gca,'xTick', 0 : 0.1 : omega_p_max )
set( gca,'yTick', 0 : 0.02 : 0.12 )
%box on
%opengl software
%axis tight
colormap jet(500)
h = colorbar;
xlabel (h, '$a_0$', 'fontsize',23, 'interpreter','latex' )
set( gca,'fontsize',16 )
xlabel( '$ \Omega_p $','fontsize', 20 , 'interpreter','latex' )
ylabel( '$ \psi a_0^2 \gamma_0 $','fontsize',22, 'interpreter','latex' )
title( 'Parameter map', 'fontsize', 19, 'interpreter', 'tex')
plot ( omega_p, dia_ineq1, '-.b', omega_p, dia_ineq2, 'r', 'LineWidth', 2 )
hold off

 采纳的回答

Naveen
Naveen 2013-1-17

0 个投票

So it was hold on and hold off commands that caused problems. Using hold all command did the trick!

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Annotations 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by