Plotting a Mathematical Expression
with Graphical User Interface in Windows
A sample interactively plotting a mathematical expression with graphical user interface (GUI) in Windows
is shown below.
The above interactive plotting can be done
using Ch Professional, Student, or Evaluation Edution for Windows. Click the above image to get an enlarged one.
The above GUI for interactive plotting is accomplished by the program winplot.ch,
which is included in the distribution of the sample code below.
To compile the program in C++,
SIGL C++ graphical library is needed for plotting and Embedded Ch is needed to process
the mathematical expressions entered by the user through the GUI.
The program winplot.ch can readily run in
Ch Professonal, Student, or Evaluation Edition.
The program winplot.cpp can be compiled using a C++ compiler with
Download the Code
Click here to download the code that generates the above GUI for plotting.
For real-time plotting with different sets of data,
please try demos here.