Python 等效于 Wolfram 语言 ParametricPlot3D?

数据挖掘 可视化 matplotlib wolfram语言
2022-03-10 00:09:30

Wolfram 语言ParametricPlot3D可用于交互式检查 3D 参数函数. 哪个 Python 包和函数最好地复制了这一点?

我有几个系列的数据,我想在 Python 项目的交互式 3D 图中表示为分类曲线。

作为一组 10 个系列的最小示例,每个系列有 20 个观察值,在 Wolfram 语言中,我可以

SeedRandom[987]
obs = RandomVariate[StudentTDistribution[3, 1, 5], {10, 20}];
foos = PDF@*SmoothKernelDistribution /@ obs;

ParametricPlot3D[
 MapIndexed[{First@#2, u, v #1[u]} &]@foos, {u, -5, 10}, {v, 0, 1},
 BoxRatios -> {5, 1, 1},
 PlotRange -> Full,
 ColorFunction -> ColorData["SunsetColors"],
 Background -> Lighter@Purple,
 AxesStyle -> White,
 TicksStyle -> White,
 Boxed -> False,
 AxesEdge -> {{0, 0}, {1, 0}, {1, 1}},
 ViewPoint -> {3, -2, 1.5},
 ImageSize -> Large,
 Mesh -> None,
 PlotLegends -> Automatic,
 PlotPoints -> {80, 15},
 Ticks -> {{#, IntegerName@#} & /@ Range@10, Automatic, Automatic}]

在此处输入图像描述

这是如何用 Python 完成的?

0个回答
没有发现任何回复~