⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 plot.py

📁 Dolfin provide a high-performance linear algebra library
💻 PY
字号:
# Import matplotlibfrom pylab import *#--- Test problem 1 ---from solution_1 import *figure(1)plot(t, u)#--- Test problem 2 ---from solution_2 import *figure(2)plot(t, u[:,0], t, u[:,1])#--- Test problem 3 ---from solution_3 import *figure(3)plot(t, u[:,0], t, u[:,1])#--- Test problem 4 ---from solution_4 import *figure(4)plot(t, u[:,0], t, u[:,1], t, u[:,2], t, u[:,3], t, u[:,4], t, u[:,5], t, u[:,6], t, u[:,7])#--- Test problem 5 ---from solution_5 import *figure(5)plot(t, u[:,0], t, u[:,1], t, u[:,2], t, u[:,3], t, u[:,4], t, u[:,5])#--- Test problem 6 ---from solution_6 import *figure(6)plot(t, u[:,0], t, u[:,1])#--- Test problem 7 ---from solution_7 import *figure(7)plot(t, u[:,0], t, u[:,1], t, u[:,2], t, u[:,3], t, u[:,4], t, u[:,5], t, u[:,6], t, u[:,7], t, u[:,8], t, u[:,9])#--- Test problem 8 ---from solution_8 import *figure(8)plot(t, u[:,0], t, u[:,1], t, u[:,2])#--- Test problem 9 ---from solution_9 import *figure(9)plot(t, u[:,0], t, u[:,1], t, u[:,2])show()

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -