from mpl_toolkits.mplot3d import Axes3D
from matplotlib import cm
from matplotlib.ticker import LinearLocator from matplotlib.font_manager import FontProperties
# 用于解决 Windows 系统,显示中文字体的问题
font = FontProperties(fname=r"c:\windows\fonts\simsun.ttc", size=45) import matplotlib.pyplot as plt
import numpy as np fig = plt.figure()
ax = fig.gca(projection='3d') [x , t] = np.meshgrid(np.array(range(25))/24.0,np.arange(0, 575.5,0.5)/575*17*np.pi - 2*np.pi)
p = np.pi/2 * np.exp(-t/(8*np.pi))
u = 1 - (1 - np.mod(3.6*t, 2 * np.pi)/np.pi) **4/2
y = 2 * (x ** 2-x)**2*np.sin(p)
r = u * (x*np.sin(p) + y * np.cos(p)) surf = ax.plot_surface(r * np.cos(t),r * np.sin(t), u *(x*np.cos(p)-y*np.sin(p)),\
rstride = 10,cstride=10 ** 10,cmap = cm.gist_heat,linewidth=7,antialiased=True) plt.title(u'你好!',fontproperties=font)
ax.set_xticks([])
ax.set_yticks([])
ax.set_zticks([])
plt.show()

最新文章

  1. 微信平台ASPX高级定制开发(一):如何使用C#建立响应微信接入和自动回复的代码
  2. BZOJ3771: Triple
  3. OpenCV 计算区域的内部参数
  4. 【three.js详解之一】入门篇
  5. 各大浏览器 CSS3 和 HTML5 兼容速查表
  6. JQuery知识快览之二—事件
  7. UVA 10574 - Counting Rectangles 计数
  8. ubuntu 远程 ubuntu
  9. ERROR: The node /hbase is not in ZooKeeper. It should have been written by the master. Check the value configured in 'zookeeper.znode.parent'. There could be a mismatch with the one configured in the
  10. 将 Web 应用性能提高十倍的10条建议
  11. Jmeter之Bean shell学习(一)
  12. android wear开发之:建立可穿戴设备的应用 - Building Apps for Wearables
  13. css3 结构性伪类选择器
  14. [BZOJ]3532: [Sdoi2014]Lis
  15. 20165231 2017-2018-2《Java程序设计》课程总结
  16. js阻止事件冒泡的两种方法
  17. 【Go入门教程6】struct类型(struct的匿名字段)
  18. vue项目在ie浏览器和360浏览器的兼容模式下不显示,出现promise未定义问题
  19. dell c6220II lsi阵列卡
  20. AMF解析之数据类型定义 (转)

热门文章

  1. mysql主从同步碰到的问题
  2. struts2的action中@Autowired注入为null的解决方案
  3. ① 设计模式的艺术-07.适配器(Adapter)模式
  4. 在Windows下安装MongoDB
  5. 【译】DTD - Entities
  6. python基础之上下文管理器
  7. 不老的神器:安全扫描器Nmap渗透使用指南【转】
  8. https、socket、http协议
  9. VI编辑,配置文件
  10. MYSQL三种安装方式--rpm包安装