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

2 views (last 30 days)
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
Natalie Perlin
Natalie Perlin on 13 Jul 2015
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

Zhigang
Zhigang on 31 Jul 2014
Edited: Randy Souza on 29 Aug 2014
Hi Zifeng,
Try to reset your default figure renderer to 'buffer', by:
set(0,'DefaultFigureRenderer','zbuffer')
  2 Comments
Sylvia
Sylvia on 6 Apr 2015
Edited: Sylvia on 6 Apr 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.

Sign in to comment.

More Answers (0)

Categories

Find more on App Building in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!