Boundary of a plot in Matlab 2012b

조회 수: 1 (최근 30일)
Naveen
Naveen 2013년 1월 17일
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일
So it was hold on and hold off commands that caused problems. Using hold all command did the trick!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by