Описание тега subplot

NoneSubplot is a Matlab / Matplotlib function which divides the current figure into a grid. Each block in the grid can contain an axes object which can be manipulated and used for plotting.

Plotly

For information about plotly::subplot look at the Subplot in R/JavaScript/Python.

Matlab

subplot() in Matlab is a function which allows displaying several axes elements in the same figure, side by side. It divides the current figure into a grid that is numbered row-wise. Each block in the grid can contain an axes object which can be manipulated using Axes Properties. Subsequent plots are output to the current axes.

For more information, see Matlab's official doc.

Matplotlib

In Matplotlib the most straightforward way to use the subplot functionality is probably with the pyplot.subplots() function, which already returns a Figure object and a numpy.ndarray object representing the subplot grid with nrows and ncols.

Another way to create subplots is to use gridspec. Gridspec specifies the geometry of the subplots' grid with the number of rows and columns. Gripspec is more flexible instrument to work with subplots than the standard subplots() function.