Registry / other / mathgl

mathgl

JSON →
library8.0.1vcpkgunverified

A free library of fast C++ routines for plotting data in one or more dimensions.

vcpkg install mathgl
INSTALL
IMPORT
SIG · MATHGL
M
mathgl
othercppv8.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mgl2/mgl.h
#include <mgl2/mgl.h>

Plots a sine wave and saves it as a PNG image

#include <mgl2/mgl.h> int main() { mglGraph gr; mglData x(100), y(100); for (int i = 0; i < 100; i++) { x.a[i] = i * 0.1; y.a[i] = sin(x.a[i]); } gr.Plot(x, y); gr.WritePNG("plot.png"); return 0; }
Debug
Known issues
gotchaRequires linking with -lmgl on Unix systems
fix
Add target_link_libraries(your_target MathGL::MathGL)
affects: *
Upgrade
Version history
8.0.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources

No resource links recorded.

mathgl — pip install mathgl · libregistry