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 件のコメント

Natalie Perlin
Natalie Perlin 2015 年 7 月 13 日
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')

サインインしてコメントする。

 採用された回答

Zhigang
Zhigang 2014 年 7 月 31 日
編集済み: Randy Souza 2014 年 8 月 29 日

0 投票

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

2 件のコメント

Zifeng Hu
Zifeng Hu 2014 年 8 月 1 日
it works sucessfully, Thank you very much!
Sylvia
Sylvia 2015 年 4 月 6 日
編集済み: Sylvia 2015 年 4 月 6 日
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.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索

質問済み:

2014 年 7 月 24 日

コメント済み:

2015 年 7 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by