【发布时间】:2011-09-27 23:22:37
【问题描述】:
给定两个矢量图和一个等高线图,如下所示
as = VectorPlot[{Cos[y], Sin[x] }, {x, -3, 3}, {y, -3, 3},
VectorScale -> Automatic, VectorColorFunction -> "Rainbow"
];
bs = StreamPlot[{Cos[y], Sin[x] }, {x, -3, 3}, {y, -3, 3},
VectorScale -> Automatic, StreamColorFunction -> "Rainbow"
];
cs = ContourPlot[Cos[x] + Sin[y], {x, -3, 3}, {y, -3, 3},
ColorFunction -> "BlueGreenYellow"
];
Show[cs, bs, as]
我们可以看到Show[]很好地完成了基本的叠加工作。但我的问题是如何控制背景等高线图的不透明度 cs?另外,如何在如下颜色函数中插入“BlueGreenYellow”类型的配色方案?
ContourPlot[Cos[x] + Sin[y], {x, -3, 3}, {y, -3, 3},
ColorFunction -> (Directive[Opacity[#],Blue] &)
];
【问题讨论】:
标签: graphics wolfram-mathematica