A

Admin • 833.24K Points
Coach

Q. What does 'ax = fig.add_subplot(2,2,1)' do?

  • (A) Creates a subplot at position (2,2,1) in a 3D layout
  • (B) Adds a subplot in a 2x2 grid at the 1st position
  • (C) Creates 2 subplots in one row
  • (D) Adds multiple subplots to one figure
  • Correct Answer - Option(B)
  • Views: 22
  • Filed under category Matplot Lib
  • Hashtags:

Explanation by: Admin

add_subplot(2,2,1) creates a subplot in a 2x2 grid layout at the first position.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.