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 Commento

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

Accedi per commentare.

 Risposta accettata

Zhigang
Zhigang il 31 Lug 2014
Modificato: Randy Souza il 29 Ago 2014
Hi Zifeng,
Try to reset your default figure renderer to 'buffer', by:
set(0,'DefaultFigureRenderer','zbuffer')

2 Commenti

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.

Accedi per commentare.

Più risposte (0)

Categorie

Community Treasure Hunt

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

Start Hunting!

Translated by