Thread: GNUPLOT: Plotting multiple files.

  1. #1
    Registered User
    Join Date
    Dec 2007

    GNUPLOT: Plotting multiple files.


    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,


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

    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.

  3. #3
    Registered User
    Join Date
    Sep 2006
    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
    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,


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, 01:44 AM
  3. Windows shell commands - multiple files
    By Magos in forum Tech Board
    Replies: 3
    Last Post: 02-28-2006, 01: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, 08:54 AM