Question
Option 4 : Creates a grid of 2 rows and 3 columns of subplots and activates the 4th subplot / उपप्लॉटों का 2 पंक्तियों और 3 स्तंभों का ग्रिड बनाता है तथा चौथे उपप्लॉट को सक्रिय करता है
Detailed Solution
सही उत्तर Creates a grid of 2 rows and 3 columns of subplots and activates the 4th subplot / उपप्लॉटों का 2 पंक्तियों और 3 स्तंभों का ग्रिड बनाता है तथा चौथे उपप्लॉट को सक्रिय करता है है।
Question:
In matplotlib, what does the call plt.subplot(2, 3, 4) do? / matplotlib में plt.subplot(2, 3, 4) कॉल क्या करता है?
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 से गिने गए) को वर्तमान अक्ष बनाता है।