Patch object in logarithmic scale
19 ビュー (過去 30 日間)
古いコメントを表示
Dear all, when I change the axes scale from linear to log, a colored polygon (usually drawn by patch or fill) is not colored any more. Why and how can I avoid it?
Regards, Maurizio
0 件のコメント
採用された回答
Walter Roberson
2012 年 2 月 2 日
If I recall correctly, fill creates patches; I am not sure about that.
If a patch object has any point which is 0 or negative on an axis, then when that axis is changed to log scale, the internal patch render algorithms give up trying to color it. This is the case even if the point is not within the current axis limits.
The work-around is not to use a non-negative coordinate -- even if it is eps() or even 1E-100, any non-negative value should do.
You might perhaps also be able to get around the problem by setting the figure rendering property to 'painters' or 'zbuffer'; I only routinely use OpenGL so I am not certain if the problem applies to the other renders.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Polygons についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!