I use c to program. plot them with other software like IDL or origin.

  • Thread starter enricfemi
  • Start date
  • #1
191
0
I use c to program. Usually, I write the data to files and plot them with other software like IDL or origin. but I really tired of it, since i need open a file thousands times while debug.

Is there any better method to plot the data. which methods do you use?
 

Answers and Replies

  • #2
783
9


Yes there is a much better way. I too have had to do the same thing until I found a solution in Numerical Recipes 3rd Edition. You will have to purchase the book or the source code but chapter 22 has a PSplot and PSpage routine that can be used to create graphs that open up automatically in a pop up window. You will need to download the GSview.exe from Ghostview also. The book is really worth the price.

Hope this helps.
 
  • #3
315
1


You can write data to a file, then from your C program run a separate program to generate a graph from the file and open it in a window. I use gnuplot.
 
  • #4
816
1


Get gnuplot. Learn how to run external programs from c. Make a function that writes a temp file and run gnuplot over it.
 
  • #5
191
0


Thx.
 

Related Threads on I use c to program. plot them with other software like IDL or origin.

Replies
4
Views
2K
Replies
1
Views
4K
  • Last Post
Replies
7
Views
2K
  • Last Post
Replies
0
Views
5K
  • Last Post
Replies
10
Views
4K
  • Last Post
Replies
13
Views
908
  • Last Post
Replies
0
Views
3K
Replies
8
Views
2K
Replies
5
Views
4K
Top