Menu

How to close plplot graphical window/widget with ada code?

oldcodebit
2021-03-20
2021-03-20
  • oldcodebit

    oldcodebit - 2021-03-20

    After running ada code example to plot a function using plplot, the sample code plots the output in graphical window/widget in linux. So one ends up with shell terminal and graphical window. The graphical window can be close with a mouse. How can one close it with ada code line. The ada binding does not have any options for plend() executed by End_PLplot ada code. Is there alternative command in ada to close window/widgets?

     
  • oldcodebit

    oldcodebit - 2021-03-20

    I solved it by reading the following link I found (Closing Window). In ada , the code will be as follows:

      -- Stop waiting for user response
         Set_Pause(False);
        -- Close PLplot library.
          End_PLplot;
    

    To put it back to the way it was before, change False to True.

     

Log in to post a comment.

MongoDB Logo MongoDB