import matplotlib.pyplot as plt plt.subplot(m,n,p) m,n表示一个窗口上显示m行n列 p表示正在处理第p个区域的部分(区域编号从左到右,从上到下) for i in range(6): plt.subplot(2,3,i+1) ... 一个窗口上则为2行3列,6个区域的布局,用循环对这六个区域分别进行处理
procedure TForm1.Button1Click(Sender: TObject); var bm : TBitmap; il : TImageList; begin bm := TBitmap.Create; bm.LoadFromFile('C:\DownLoad\TEST.BMP'); il := TImageList.CreateSize(bm.Width, bm.Height); il.DrawingStyle := dsTransparent; il.Masked := t
from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np from matplotlib import cm fig=plt.figure() ax=fig.add_subplot(111,projection='3d') u=np.linspace(-1,1,100) x,y=np.meshgrid(u,u) z=x**2+y**2 ax.plot_surface(x,y