Question

1.
2.
3.
4.
Answer (Detailed Solution Below)

Option 4 : Creates a grid of 2 rows and 3 columns of subplots and activates the 4th subplot / उपप्लॉटों का 2 पंक्तियों और 3 स्तंभों का ग्रिड बनाता है तथा चौथे उपप्लॉट को सक्रिय करता है

Advertisement

Detailed Solution

सही उत्तर Creates a grid of 2 rows and 3 columns of subplots and activates the 4th subplot / उपप्लॉटों का 2 पंक्तियों और 3 स्तंभों का ग्रिड बनाता है तथा चौथे उपप्लॉट को सक्रिय करता है है।

Key Points
Helpful?
PrepSnapprepsnap.in • Part -A

Question:

In matplotlib, what does the call plt.subplot(2, 3, 4) do? / matplotlib में plt.subplot(2, 3, 4) कॉल क्या करता है?

1.
Creates a figure of size 2 by 3 inches containing 4 subplots / 4 उपप्लॉटों वाला 2 बाई 3 इंच आकार का चित्र बनाता है
2.
Selects the subplot in the 2nd row and 3rd column out of 4 subplots / 4 उपप्लॉटों में से दूसरी पंक्ति और तीसरे स्तंभ का उपप्लॉट चुनता है
3.
Creates 2 separate figures, each with 3 subplots / 2 अलग चित्र बनाता है, जिनमें प्रत्येक में 3 उपप्लॉट हैं
4.
Creates a grid of 2 rows and 3 columns of subplots and activates the 4th subplot / उपप्लॉटों का 2 पंक्तियों और 3 स्तंभों का ग्रिड बनाता है तथा चौथे उपप्लॉट को सक्रिय करता है

Correct Answer: Creates a grid of 2 rows and 3 columns of subplots and activates the 4th subplot / उपप्लॉटों का 2 पंक्तियों और 3 स्तंभों का ग्रिड बनाता है तथा चौथे उपप्लॉट को सक्रिय करता है

subplot(nrows, ncols, index) divides the figure into an nrows by ncols grid; plt.subplot(2, 3, 4) therefore creates a 2-row by 3-column grid and makes the 4th subplot (counted row-wise from 1) the current axes. / subplot(nrows, ncols, index) चित्र को nrows बाई ncols ग्रिड में बाँटता है; अतः plt.subplot(2, 3, 4) 2-पंक्ति बाई 3-स्तंभ ग्रिड बनाता है और चौथे उपप्लॉट (पंक्तिवार 1 से गिने गए) को वर्तमान अक्ष बनाता है।

Downloaded from PrepSnap (prepsnap.in)