MATLAB 2014R problem: m_pcolor could be used with m_grid together

A problem is always occurring when using the m_map box in MATLAB 2014a:
m_pcolor could not be used with m_grid together because they will make the figure dimish much smallest
This did not happen in previous versions.

1 comentario

Having the same problem with m_pcolor and m_grid, using Matlab R2014a and m_map v.1.4. What worked for me was the following: set(gcf,'Renderer','zbuffer')

Iniciar sesión para comentar.

 Respuesta aceptada

Zhigang
Zhigang el 31 de Jul. de 2014
Editada: Randy Souza el 29 de Ag. de 2014
Hi Zifeng,
Try to reset your default figure renderer to 'buffer', by:
set(0,'DefaultFigureRenderer','zbuffer')

2 comentarios

it works sucessfully, Thank you very much!
Sylvia
Sylvia el 6 de Abr. de 2015
Editada: Sylvia el 6 de Abr. de 2015
I am having the same problem but can't get this suggestion to work. Here's my attempt:
% SET UP PAGE
clf
file7 = 'fig7-att-grids';
fig7 = figure(7);
set(fig7,'PaperOrientation','landscape','PaperPosition','default');
set(fig7,'PaperPosition',[0.15 0.15 9.40 8.40]);
set(0,'DefaultFigureRenderer','zbuffer')
% PLOT
m_proj('miller','lat',[-90,90],'lon',[0,360]);
hold on
pch = m_pcolor(lon,lat,attNST'); set(pch,'EdgeColor','none'); alpha(0.85);
m_grid('xtick',10,'tickdir','out','yaxislocation','left','fontsize',9);
m_coast('line','Color','k','LineWidth',1);
Do I need to put the 'set' statement elsewhere? Or specify a handle other than '0'? Thanks for any help.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Preguntada:

el 24 de Jul. de 2014

Comentada:

el 13 de Jul. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by