Skip to content

Equations Plotter

Equations Field

A simple math plotter using ImGui for the user interface and ImPlot for visualizing mathematical functions. It allows the user to input mathematical formulas, adjust axis ranges, and visualize the function’s graph in real-time.

  • Initializes a GLFW window with OpenGL context.
  • Loads ImGui and ImPlot for creating a graphical interface.
  • Accepts user input for a mathematical expression and plots the function.
  • Provides interactive controls for adjusting the plot’s axis ranges.
  • Dynamically updates the plot based on the formula entered by the user.

Note: The program also features the use of the exprtk library for parsing and evaluating mathematical expressions. It allows users to input custom formulas for plotting.

equa_plot

  1. Install libraries and dependencies with conan

    conan install .. --output-folder=.
  2. Enter the build directory

    cd build
  3. Compile the cmake libraries with conan.cmake toolchain.

    cmake ..
  4. Compile the main.cpp with dependencies.

    cmake --build .

In the conan file.