Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

how can we plot in python using gdb compiler

+4 votes
asked Dec 16, 2025 by Ankit 174 (160 points)

1 Answer

+3 votes
answered Dec 16, 2025 by Peter Minarik (101,340 points)
OnlineGDB compiles and runs the program on a remote server. It only forwards simple results to the user, including standard output and HTML.

So if you make sure that your Python plotting happens into an HTML, then (hopefully) you'll see that also in your browser.

Please, test if this works.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...