Mathematica:如何将图表变得生动有趣

2026-02-23 04:19:31

1、首先定义一款字体风格,用来模仿漫画幽默的风格。

Mathematica:如何将图表变得生动有趣

2、下一步定义函数,给定图形上一点以及label的偏移量,该函数将用光滑的曲线连接两者。

Mathematica:如何将图表变得生动有趣

3、定义规则,对于给定的图形对象,它将用我们预先定义的风格替换原来的风格。

Mathematica:如何将图表变得生动有趣

4、应用以上规则并加粗坐标轴。

Mathematica:如何将图表变得生动有趣

Mathematica:如何将图表变得生动有趣

5、现在轮到图像处理步骤,这是最厉害的地方!

Mathematica:如何将图表变得生动有趣

6、函数首先光栅化Mathematica图形,将其转化为一个图像。然后,它会生成两个额外的随机图像,并通过与高斯核卷积平滑它们。

Mathematica:如何将图表变得生动有趣

7、现在可以作新的图像了,见证奇迹的时候到了!

Mathematica:如何将图表变得生动有趣

Mathematica:如何将图表变得生动有趣

8、条形图。

Mathematica:如何将图表变得生动有趣

Mathematica:如何将图表变得生动有趣

Mathematica:如何将图表变得生动有趣

Mathematica:如何将图表变得生动有趣

9、饼图。

Mathematica:如何将图表变得生动有趣

Mathematica:如何将图表变得生动有趣

10、散点图。

Mathematica:如何将图表变得生动有趣

Mathematica:如何将图表变得生动有趣

11、3D图形。

Mathematica:如何将图表变得生动有趣

Mathematica:如何将图表变得生动有趣

Mathematica:如何将图表变得生动有趣

Mathematica:如何将图表变得生动有趣

猜你喜欢