GNUPLOT: Plotting multiple files.

This is a discussion on GNUPLOT: Plotting multiple files. within the Tech Board forums, part of the Community Boards category; Hello, I'm running GNUPLOT in linux. I have a C program that outputs data file sequentialy in the form data.000, ...

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    12

    GNUPLOT: Plotting multiple files.

    Hello,

    I'm running GNUPLOT in linux. I have a C program that outputs data file sequentialy in the form data.000, data.001, data.002 etc. and I need to create a plot of each of these files as .gif's so I can merge them to create an animation.

    I was wondering if anyone out there had to do this before as I have no dea of what to do. I could do them one by one but it will take hours. I know that you can write scripts for GNUPLOT but I can find what language it uses or how to create a loop so that I can do what I need to do. Any help you can give will be much appreciated.

    Thank you in advance for any help given and I look forward to your reply,

    Wayne.

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,494
    So are you able to generate 1 GIF at a time at the moment?

    Edit:
    Moved to tech until the solution is clearer.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    I'm confused, do you want to use GNUPLOT to capture the gif files, or write up your own program to capture the data being sent in?

  4. #4
    Registered User
    Join Date
    Dec 2007
    Posts
    12
    Sorry about the confusion guys.

    So my program to output the data is finished and working fine. It's a simulation that outputs a data file for each time step.

    At the moment, I know how to graph a single file no problem.

    However I could have 200 data files from this program that need to be graphed separately as .gif's so I can merge them to create an animation. I know how to merge them also. I just don't know how to automatically generate these graphs.

    Do you know a way to do this?

    Thanks you for your quick reply,

    Wayne.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  2. need assistance with multiple files
    By c++.prog.newbie in forum C++ Programming
    Replies: 7
    Last Post: 03-21-2006, 12:44 AM
  3. Windows shell commands - multiple files
    By Magos in forum Tech Board
    Replies: 3
    Last Post: 02-28-2006, 12:56 AM
  4. copy multiple files to a destination file
    By Bones in forum C++ Programming
    Replies: 2
    Last Post: 10-02-2003, 10:47 AM
  5. Multiple Files
    By Riko in forum C Programming
    Replies: 1
    Last Post: 02-19-2002, 07:54 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21