Why do I get the diagonal lines in my mesh plot?
古いコメントを表示
My code:
N= 18; % Number of cells in x- and y-direction
x=linspace(0,1,N+1); y=x;
grid_value = ones(N+1,N+1);
mesh(x,y,grid_value) view([0 0 1])
Where do the diagonal lines come from? And how can I remove them?
UPDATE: if I save the file as .jpg the diagonal lines disappear.
1 件のコメント
Walter Roberson
2013 年 4 月 29 日
I seem to recall hearing of this as a bug. Which MATLAB version are you using, and which operating system?
Experiment with changing the figure renderer, such as
set(gcf, 'Renderer', 'painters')
Also experiment with the combination
set(gcf, 'Renderer', 'opengl')
opengl software
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Discrete Data Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!