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

 Respuesta aceptada

Naveen
Naveen el 17 de En. de 2013

0 votos

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

Más respuestas (0)

Categorías

Más información sobre Line Plots en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 17 de En. de 2013

Community Treasure Hunt

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

Start Hunting!

Translated by