Matplotlib 3d 颜色图 - 有可能吗? [英] Matplotlib 3d colour plot - is it possible?

查看:64
本文介绍了Matplotlib 3d 颜色图 - 有可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为此进行了搜索,无法找到任何暗示它可能不存在的信息,但是我想问一下stackoverflow.

I've googled around for this and am unable to find anything which suggests that it may not exist, but I wanted to ask stackoverflow.

我正在使用 python 和 matplotlib,我希望绘制如下图: http://en.wikipedia.org/wiki/File:Spherical_harmonics.png

I'm using python, together with matplotlib and I'm looking to plot something like this: http://en.wikipedia.org/wiki/File:Spherical_harmonics.png

本质上我称之为 3d 热图,一种 3d 表面,其颜色代表该点函数的大小.与上面的链接类似,我想绘制一个彩色球体,显示此时该函数的幅度值.

Essentially what I would call a 3d heatmap, a 3d surface with colours representing the magnitude of a function at that point. Similar to the link above I want to plot a colourised sphere, showing the value of the magnitude of this function at this point.

这可能吗

推荐答案

您可以使用 mplot3d 工具包,

You can use the mplot3d toolkit, http://matplotlib.sourceforge.net/mpl_toolkits/mplot3d/index.html

这篇关于Matplotlib 3d 颜色图 - 有可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆