matplotlib之subplot

In matplotlib, may comprise a plurality of objects Figure subgraph (Axes), you can use the subplot () fast rendering, it calls the following form:

subplot (numRows, numCols, plotNum)
the entire plot area of the chart is divided into numRows rows and columns numCols, regional plotNum parameter specifies the creation of Axes object is located, how to understand it?

If numRows = 3, numCols = 2, then the whole image area is drawn chart styles of 3X2, as expressed by the coordinates (1,1), (1,2), (1,3), (2,1), (2 , 2), (2,3). In this case, when plotNum = 1, represented by coordinates (1,3), i.e. a first row of the first column of FIG sub;

Guess you like

Origin www.cnblogs.com/wind666/p/11032740.html