📄 plot.py
字号:
#!/usr/bin/env python__author__ = "Rolv Erlend Bredesen <rolv@simula.no>"__date__ = "2008-04-03 -- 2008-04-03"__copyright__ = "Copyright (C) 2008 Rolv Erlend Bredesen"__license__ = "GNU LGPL Version 2.1"import numpy from pylab import *import matplotlib.axes3d as p3from solution import u, t, k, rprint "Residual:", norm(r)ion() # interactive onplot(t, u)legend(('x', 'y', 'z'))xlabel('t')ylabel('U(t)')grid('on')x, y, z = numpy.hsplit(u, 3)ax = p3.Axes3D(figure())ax.plot3d(x,y,z)ax.set_xlabel('x')ax.set_ylabel('y')ax.set_zlabel('z')savefig('lorenz.png')figure()plot(t, x, label='x')legend()show()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -