How to prevent small lines from disappearing on zoom out?
5 ビュー (過去 30 日間)
古いコメントを表示
I have a 2D curve that I am plotting as very small segments so I can change the color per segment. I have found that if I zoom out, the entire thing just disappears, perhaps due to some graphics optimization that considers each segment to be excessively small? Is there a way around this?
EDIT: For example:
for ii=0:1000
plot([0 0],[ii*0.01 ii*0.01+0.01],'linewidth',3)
hold on
end
Then,
axis([-100 100 -100 100])
At this point I have a blank plot.
3 件のコメント
Image Analyst
2019 年 1 月 16 日
Possibly just being subsampled away when it displays on your screen in much fewer number of pixels?
回答 (1 件)
madhan ravi
2019 年 1 月 17 日
Becuase you plot single points in every iteration and you haven‘t mentioned a marker for it
plot(...,'-ok','Linewidth',3)
% remove axis(...)
2 件のコメント
Walter Roberson
2019 年 1 月 17 日
Look in the File Exchange for the colored line contribution based on surf or the one based on patch.
参考
カテゴリ
Help Center および File Exchange で Visual Exploration についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!