Matlab contour plots with transparent backgrounds?
1 次查看(过去 30 天)
显示 更早的评论
Hi. This is Nat Hamlin. I'm wondering how to use Matlab to make contour plots (of magnetic field lines) with transparent backgrounds. Specifically, the input file generally contains data for multiple contour plots, and I would like to be able to generate the plots, and the output files, sequentially using a "for" loop. The purpose of this is to then overlay these plots, with transparent backgrounds, onto gray-scale or color displays of a different quantity that in many cases have been created in a different program. Thanks.
0 个评论
回答(1 个)
Walter Roberson
2011-3-8
contour() and contourf() produce a hggroup object which has patch objects as its children. You can set the alpha characteristics of patch objects in various ways; see here
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Contour Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!