LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-20-2011, 01:06 AM   #1
kelvin490
LQ Newbie
 
Registered: Jul 2011
Posts: 1

Rep: Reputation: Disabled
Please Help!! ploting with gnuplot


I would like to ask if I have already plot a graph using gnuplot:

gnuplot> load '<ParadisDir>/inputs/gnuplot.defaults'
gnuplot> splot 'box.in' with lines, '0t0001' w lines

How to transform it to bmp file? (or other types of pictures?)

can I massively( and automatically) do this so that I'll have a set of bmp files (say, 100 of them) to make movie?

Thanks very much. All replies are welcome.
 
Old 07-20-2011, 02:25 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Did you even try looking at the Gnuplot documentation? The FAQ has this about making output files. If you just run "set terminal", it'll show you a list of output formats that can be used (JPEG is on the list, for example). There's probably info in there (or the reference manual) about batch scripting, so you can do things automatically.

Edit: Here's a simple example of a using Gnuplot in a shell script. All it does is plot sin(x) to files named "tmpn.jpg", where n is an integer from 1 to 10, from the for loop:

Code:
#!/bin/bash

for i in $(seq 1 10)
do
    gnuplot<<EOF
    set terminal jpeg
    set output "tmp$i.jpg"
    plot sin(x)
EOF
done
If you've not done shell scripting before, see this. The above example is called a here document.

Edit: If you want to make movies from a set of images, look at mencoder. Google will give you tutorials for doing this.

Last edited by Nylex; 07-20-2011 at 06:59 AM.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
About gnuplot 3.7 DaisyTZA Red Hat 1 01-24-2011 11:17 AM
gnuplot 4.0.0 ines Linux - Software 1 04-28-2005 02:26 PM
Gnuplot allycavs Linux - Software 5 02-04-2005 07:31 AM
need help for gnuplot eph Linux - Newbie 1 08-23-2004 08:41 AM
about gnuplot Rex_chaos Linux - Software 0 09-25-2003 08:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration