KnowledgeBoat Logo
LoginJOIN NOW

Informatics Practices

What is the use of subplot() function? Write its parameters.

PyPlot

2 Likes

Answer

The subplot() function is used to display multiple charts in the same window.

The syntax of the subplot() function is: subplot(nrows, ncols, index).

The parameters are:

  1. nrows: The number of rows in the grid of subplots.
  2. ncols: The number of columns in the grid of subplots.
  3. index: The index of the subplot to create, starting from 1 and increasing from left to right, top to bottom.

Answered By

3 Likes


Related Questions