79744897

Date: 2025-08-24 13:27:12
Score: 1
Natty:
Report link

When a script is run in Linux terminal following is true

  1. plt.plot() followed by plt.pause(10) will show plot for 10 seconds (plt.show() not necessary)

  2. plt.plot() NOT followed by plt.pause(10) will show [nothing / empty window for a fraction of second and closes] . plot shown only if plt.show() is used

  3. time.sleep(5) , input("any key") do not change display behaviour

  4. plt.show() is like plt.pause(infinite time)

  5. plt.show(block=False) is showing nothing unless followed by plt.pause(4). It is useless

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When a
  • Low reputation (0.5):
Posted by: ShaileshKumarMPatel