New program for making plots in linux

  • Thread starter grady
  • Start date
  • #1
grady
70
2
I've been working on a program that can make plots for the past two weeks. I've been toiling over window creation, how to parse up commands, multiple viewports in a window etc, and yesterday I finally got the program to do some actually plotting. All it can plot is xy scatter plots right now and it doesn't do any of the statisitical calculations that I'm planning on, but at least it plots. If you want to check it out and make some suggestions you can do so, suggestions about code or features that you think would be neat are very welcome. you can download the code at http://members.cox.net/gradyfield/agda.tar.bz2 . Type "make -f agda.mk makefile AUTO=headers" then "make agda" to compile. Then run it with ./agda and type "source dem.ast" to execute a series of commands that will make plots come up on the screen.

In the commands the program executes, -ft in plot means the next argument is a text file, -t means type and xys means xy scatter. plot should be able to plot up a file as histogram or whatever but that doesn't work yet. Thanks for any comments.
 
Last edited by a moderator:

Answers and Replies

  • #2
Guybrush Threepwood
520
1
I've tried but it seems that something is missing. The result of :
make -f agda.mk makefile AUTO=headers

is

cp agda.mk makefile
gcc -I ./ -O3 -M agdacommands.c agdautility.c Xwindow.c agda.c dlist.c graphmem.c render.c >> makefile
In file included from agdacommands.c:21:
agdatypes.h:24:20: GL/glx.h: No such file or directory
agdatypes.h:25:38: X11/extensions/xf86vmode.h: No such file or directory
agdatypes.h:26:24: X11/keysym.h: No such file or directory
Xwindow.c:20:20: GL/glx.h: No such file or directory
Xwindow.c:21:38: X11/extensions/xf86vmode.h: No such file or directory
Xwindow.c:22:24: X11/keysym.h: No such file or directory
In file included from Xwindow.h:22,
from Xwindow.c:23:
agdatypes.h:24:20: GL/glx.h: No such file or directory
agdatypes.h:25:38: X11/extensions/xf86vmode.h: No such file or directory
agdatypes.h:26:24: X11/keysym.h: No such file or directory
agda.c:21:31: readline/readline.h: No such file or directory
agda.c:22:30: readline/history.h: No such file or directory
agda.c:23:19: GL/gl.h: No such file or directory
agda.c:24:20: GL/glu.h: No such file or directory
agda.c:25:20: GL/glx.h: No such file or directory
agda.c:26:38: X11/extensions/xf86vmode.h: No such file or directory
agda.c:27:24: X11/keysym.h: No such file or directory
In file included from Xwindow.h:22,
from agda.c:29:
agdatypes.h:24:20: GL/glx.h: No such file or directory
agdatypes.h:25:38: X11/extensions/xf86vmode.h: No such file or directory
agdatypes.h:26:24: X11/keysym.h: No such file or directory
In file included from graphmem.c:18:
agdatypes.h:24:20: GL/glx.h: No such file or directory
agdatypes.h:25:38: X11/extensions/xf86vmode.h: No such file or directory
agdatypes.h:26:24: X11/keysym.h: No such file or directory
In file included from render.c:18:
agdatypes.h:24:20: GL/glx.h: No such file or directory
agdatypes.h:25:38: X11/extensions/xf86vmode.h: No such file or directory
agdatypes.h:26:24: X11/keysym.h: No such file or directory
render.c:20:19: GL/gl.h: No such file or directory
render.c:21:20: GL/glu.h: No such file or directory
render.c:22:20: GL/glx.h: No such file or directory
render.c:23:38: X11/extensions/xf86vmode.h: No such file or directory
render.c:24:24: X11/keysym.h: No such file or directory
make: *** [makefile] Error 1

I'm not very good at console, but if you can clue me I'll be glad to take a look at your program
 
  • #3
grady
70
2
Hi, Guybrush Threepwood. You need to add "-I /usr/include" to the line in agda.mk that says "CFLAGS = -I ./ -O3". You might also do type gcc -v in the console. if your version of gcc isn't at least 3.2 the program might not compile becuase C99 stuff doesn't work. There might be a compiler switch to turn on C99 but i haven't looked yet on Google. Thanks for trying to get the program working though. :)
 
  • #4
Guybrush Threepwood
520
1
gcc is 2.96 :frown:
I also have linux at home so I'll check the gcc version there and if it's good I'll try...
 

Suggested for: New program for making plots in linux

  • Last Post
Replies
18
Views
480
  • Last Post
Replies
2
Views
534
  • Last Post
Replies
18
Views
1K
Replies
6
Views
218
Replies
23
Views
2K
Replies
18
Views
803
Replies
17
Views
416
Replies
1
Views
265
Replies
12
Views
2K
Replies
15
Views
161
Top