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 Comment

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')

Sign in to comment.

 Accepted Answer

Hi Zifeng,
Try to reset your default figure renderer to 'buffer', by:
set(0,'DefaultFigureRenderer','zbuffer')

2 Comments

it works sucessfully, Thank you very much!
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.

Sign in to comment.

More Answers (0)

Categories

Asked:

on 24 Jul 2014

Commented:

on 13 Jul 2015

Community Treasure Hunt

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

Start Hunting!