Question
Option 2 : plt.show() — renders and opens the figure window / फिगर विंडो को रेंडर करके खोलता है
Detailed Solution
सही उत्तर plt.show() — renders and opens the figure window / फिगर विंडो को रेंडर करके खोलता है है।
Question:
In matplotlib.pyplot, which function renders and displays the figure window? / matplotlib.pyplot में कौन-सा फंक्शन फिगर विंडो को रेंडर करके दिखाता है?
Correct Answer: plt.show() — renders and opens the figure window / फिगर विंडो को रेंडर करके खोलता है
plt.show() renders and opens the figure window. plt.plot() only draws onto the figure, plt.savefig() writes it to a file, and plt.draw() merely redraws in interactive mode. / plt.show() फिगर विंडो को रेंडर करके खोलता है। plt.plot() केवल चित्र बनाता है, plt.savefig() फ़ाइल में सहेजता है, और plt.draw() इंटरैक्टिव मोड में केवल पुनः आरेखित करता है।