【发布时间】:2020-05-16 08:39:15
【问题描述】:
这是取自 Mathematica 的示例。
Plot[Abs[Exp[2 I x - x^2/2]], {x, -4, 4}, Filling -> Axis,
FillingStyle -> Automatic,
ColorFunction -> Function[{x, y}, Hue[Rescale[Arg[Exp[2 I x - x^2/2]], {-Pi, Pi}]]],
ColorFunctionScaling -> False]
生成下图
我想在 python 中制作一个等效的图。 matplotlib 是否有等效的颜色函数选项?
【问题讨论】:
标签: python matplotlib plot graph colormap