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.

回答(1 个)

Walter Roberson
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

类别

Help CenterFile Exchange 中查找有关 Contour Plots 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by