在JLaTeXMath库(http://forge.scilab.org/index.php/p/jlatexmath/)的支持下,实现了利用LaTeX语法显示特殊符号和数学公式的功能。需要在字符串首尾加“$”字符。
在MeteoInfo桌面软件中:
在MeteoInfoLab中:
相应的脚本程序:
def f(x, c): m1 = sin(2*pi*x) m2 = exp(-c*x) return m1 * m2 x = linspace(0, 4, 100) sigma = 0.5 plot(x, f(x, sigma), 'r', linewidth=2) xlabel(r'$ m{time} t$', fontsize=16) ylabel(r'$ m{Amplitude} f(x)$', fontsize=16) title(r'$f(x) m{is damping with} x$', fontsize=16) text(2.0, 0.5, r'$f(x) = m{sin}(2 pi x^2) e^{sigma x}$', fontsize=20) show()
x = arange(0.01, 1, 0.01) y = 0.5*log((1-x)/x) scatter(x,y,s=4,label=r'$alpha =frac{1}{2}ln(frac{1-varepsilon}{varepsilon })$') xlabel(r'$varepsilon$',fontsize=20) ylabel(r'$alpha$',fontsize=20) xlim(0,1) legend() show()