Questions tagged [mathgl]

MathGL is a library for making high-quality scientific graphics under Linux and Windows

MathGL is a a library for making high-quality scientific graphics under Linux and Windows, for the fast data plotting and data processing of large data arrays, for working in window and console modes and for embedding into other programs and a library with large and growing set of graphics. See http://mathgl.sourceforge.net/

40 questions
1
vote
0 answers

Mathgl Dens() plot not working

It's been now days that I'm trying to figure out what is wrong but can't because mostly there are very limited documentation that I can find about error handling with the Dens() function in Mathgl. The following is my question. I'm trying to build a…
1
vote
1 answer

Semantic Issues while linking Xcode project with MathGL

I need to use MathGL (mathgl.sourceforge.net) for plotting graphs in my Objective-C project but I cant compile it because of semantic issues in files datac_cf.h and canvas_cf.h like: /usr/local/include/mgl2/datac_cf.h:80:17: 'mgl_datac_get_value'…
0
votes
2 answers

Is it possible to call MathGL functions from .NET?

As in the subject - if I would like to create a publication ready graph from .NET, is this possible?
Contango
  • 76,540
  • 58
  • 260
  • 305
0
votes
0 answers

MathGL library using pthread in C crashes

I have directly tried to convert C++ example of mathGL Into C code here: #include #include #include #include #include //mglFLTK *gr=NULL; // pointer to window HMGL gr =…
mohammadsdtmnd
  • 330
  • 1
  • 11
0
votes
0 answers

Retrieving data from index in mglData object

I have two mglData objects mglData times(sampleN) and signals(sampleN) which are then set to previously existing arrays times.Set(times) and signals.Set(signals) from which I am trying to retrieve the value at the maximum index. What is the…
0
votes
1 answer

in MathGL how to get values an array after math operation

I have a code which perfectly draws a sine wave graph y = mgl_create_data_size(100,1,0); mgl_data_modify(y,"0.4*y+0.1+sin(6*pi*x)",0); gr = mgl_create_graph(WINDOW_WIDTH, WINDOW_HEIGHT); mgl_plot(gr,y,". ",""); mgl_box(gr); Now that the variable y…
Dickens A S
  • 3,824
  • 2
  • 22
  • 45
0
votes
1 answer

creating a 3d sphere scatter plot in mathgl using a datafile

I'm trying to create a 3d scatter plot with spheres using a data file of the format: X Y Z val \n 0 0 0 1 \n 0 0 1 0 \n 0 0 2 0 \n 0 0 3 0 \n . . . I can read the file but I can't seem to find any where how to plot a set of…
Yotam
  • 10,295
  • 30
  • 88
  • 128
0
votes
0 answers

MathGl for C++ doesn't find file: fatal error

Its hours that I'm trying to install mathgl but I'm having a lot of problems. I tried compiling a simple c++ program just by including mgl2/mgl.h but I have errors. It gives me fatal error: 'mgl2/mgl.h' file not found. I have tried installing it…
DevX10
  • 483
  • 2
  • 6
  • 16
0
votes
1 answer

Building mathgl on windows

I am kind of new to C++ (used to be a Java developer, where this is way easier...) and I have to write an application, which has to plot some graphs and charts. To do so I want to use the MathGL library. And I learned, that I have to compile it…
aquaatic
  • 87
  • 9
0
votes
0 answers

Compiling mathgl sample c++

I have installed mathgl, using: sudo apt-get install mathgl sudo apt-get install libmgl-dev When i tried to compile a sample c++ program from here #include int sample(mglGraph *gr) { gr->Rotate(60,40); gr->Box(); return…
Lefteris
  • 111
  • 2
  • 6
0
votes
0 answers

MathGL doesn t compile under Xcode

I have tried to install this morning MathGL trough my terminal: brew install mathGL and it worked pretty well. After that I added the framework and includes-lib path to my c++ project under Xcode. The problem comes when I compile it that I get …
Jose
  • 17
  • 6
0
votes
1 answer

Draw point by point 3D scatter plot with MathGL in C

I am building a particle simulation, and I want to display each particle's position as a dot in a 3D scatter plot using MathGL in C (not C++!). I am having trouble with the C interface. So far I found two interesting examples: A C++ example that…
sougonde
  • 3,438
  • 3
  • 26
  • 35
0
votes
1 answer

Cant compile c++ program using mathgl

I have installed the mathgl library using sudo apt-get install mathgl Then from their sourceforge page I copied the following example program. #include int sample(mglGraph *gr) { gr->Rotate(60,40); gr->Box(); return 0; } int…
Slugger
  • 665
  • 1
  • 5
  • 17
0
votes
0 answers

Errors connected with creating QMathGL class in application

I have a problem with MathGL library and creating MathGL instance in the application. Every time I try to run it there is an error saying that QApplication must be constructed before QWidget (from which the class QMathGL inherits). Below you can…
Oxide
  • 11
  • 1
  • 4
0
votes
1 answer

MathGL and FLTK cmake on Mac OS X: Not finding symbols

I'm having trouble getting cmake to find and link the necessary libraries for MathGL and FLTK. Linking CXX executable filter.app/Contents/MacOS/filter Undefined symbols for architecture x86_64: "_mgl_create_graph_fltk", referenced from: …
Translunar
  • 3,739
  • 33
  • 55