Modern computer operating systems won&#x27;t let you arbitrarily switch pixels on the screen on or off, so you&#x27;d need to either write a program that uses a GUI library to create a window, controls, etc, or generate an image file you can open in a viewer.<p>For Python, matplotlib(1) will let you generate plots and graphs, including simple x&#x2F;y graphs, or you could use the built-in TkInter(2) library to do a simple GUI with a drawing canvas.<p>(1)<a href="http:&#x2F;&#x2F;www.labri.fr&#x2F;perso&#x2F;nrougier&#x2F;teaching&#x2F;matplotlib&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.labri.fr&#x2F;perso&#x2F;nrougier&#x2F;teaching&#x2F;matplotlib&#x2F;</a>
(2) <a href="http:&#x2F;&#x2F;www.python-course.eu&#x2F;tkinter_canvas.php" rel="nofollow">http:&#x2F;&#x2F;www.python-course.eu&#x2F;tkinter_canvas.php</a>