How do you make a COMPASS plot completely transparent?
6 ビュー (過去 30 日間)
古いコメントを表示
Some background info:
I've been using the following two commands to make plots transparent:
set(gcf,'color','none');
set(gca,'color','none');
and then using export_fig to export them into transparent PNG files, which can be overlayed onto Google Earth. This has been working for all plots (plot, quiver, surf, pcolor, etc.)
For some reason when I use the two commands mentioned earlier with COMPASS, the entire figure window becomes transparent but not the circular plot itself. ie, the square window is transparent but the circular plot itself still has a solid white background.
Does anyone know how to make the circle itself transparent?
Thanks!
0 件のコメント
採用された回答
Walter Roberson
2011 年 11 月 4 日
compass() creates a hidden child of the axis, of type patch.
ph = allchild(gca);
set(ph(end),'FaceColor','none')
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Lighting, Transparency, and Shading についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!