User Activity

  • Posted a comment on discussion Open Discussion on MathGL

    I am running example code in linux using mgl-glut library in c++. I am getting terminal window and graphical window that displays the graph of a function. I know that it can be closed with a mouse button or pressing x. Is there a way to close it by c++ code. I am also aware of nowait function in c but I do not see that in c++. #include <mgl2/glut.h> int graph(mglGraph *gr) { gr->Title("MathGL Demo"); gr->SetOrigin(0, 0); gr->SetRanges(0, 1, 0, 100); gr->FPlot("100*x^2", "r-4"); gr->Axis(); gr->Grid();...

  • Posted a comment on discussion plplot-general on PLplot

    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.

  • Posted a comment on discussion plplot-general on PLplot

    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?

  • Posted a comment on discussion plplot-general on PLplot

    I solved it by modifying the following code, -- Parse and process command line arguments driver := To_Unbounded_String("xcairo"); Set_Device_Name(To_String(driver));

  • Created ticket #23 on PLplot

    More Examples

  • Posted a comment on discussion plplot-general on PLplot

    I have successfully figure out how to compile and link plplot library with ada (will try with other languages as well). I noticed that all examples start with a menu showing a list of output driver options menu. Is it possible to to just write code in example.adb defining the output mode without going through the menu. Is there a command to close the plplot display window.?

View All

Personal Data

Username:
oldcodebit
Joined:
2021-02-27 13:01:49

Projects

  • No projects to display.

Personal Tools