http://www.engineeringwithpython.com/ This blog is going to investigate and discuss various ways to use open source software (and sometimes ‘paid for’ software) to solve engineering/technical problems and then share those results with others.
import numpy as np import pylab as pl dx = 0.01 # Step size in x-direction dy = 0.01 # Step size in y-direction nx = int(1/dx) # Number of bins over the x-axis ny = int(1/dy) # Number of bins over the y-axis a=1 # diffusion coefficient dt=(dx*dy)**2/(dx**2+dy**2)/2/a/2 total_time=200000 ...
数据文件: XYZ1931.dat 1、直接生成PNG文件 gunplot script: gnuplot set term pngcairo Terminal type set to 'pngcairo' Options are ' background #ffffff fontscale 1.0 size 640, 480 linewidth 2' gnuplot set output 'XYZ1931.png' gnuplot set xlabel ...