New program for making plots in linux

Click For Summary

Discussion Overview

The discussion centers around a newly developed program for creating plots on Linux, focusing on its current capabilities, compilation issues, and suggestions for improvements. Participants explore technical aspects of the program's functionality and address challenges related to its compilation process.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant describes their progress on a plotting program that currently supports xy scatter plots but lacks statistical calculations.
  • Another participant reports compilation errors related to missing header files, indicating potential issues with the program's dependencies.
  • A third participant suggests adding a specific include path to the compilation flags to resolve the missing header file errors.
  • One participant mentions their GCC version is outdated, which may affect the program's ability to compile correctly.

Areas of Agreement / Disagreement

Participants do not reach a consensus on the compilation issues, as one participant suggests a solution while another expresses uncertainty about their GCC version's compatibility.

Contextual Notes

The discussion highlights limitations related to the program's current functionality and the specific dependencies required for successful compilation, which may vary based on the user's system configuration.

grady
Messages
65
Reaction score
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:
Computer science news on Phys.org
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
 
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 because 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. :)
 
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...
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
6K
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
14K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
10
Views
6K