0

I'm currently trying to plot my data using gnuplot. I have several .dat files in a folder, and I wish to plot all my data using some simple command/script (see below). How can I make it work?

I'm using this piece currently:

#!/usr/bin/gnuplot
set terminal postscript eps enhanced color
set output "DMF-10-8-.eps"
set xrange[1:10]
set yrange[0:1]
plot "DMF-10-8.dat" using 1:2 with lines title "XXX", "DMF-10-8-wmnuy9.dat" using 1:2 with     lines title "YYY"
1
  • 1
    What is the problem with this method? Commented Feb 21, 2012 at 6:15

1 Answer 1

1

If you want to plot a lot of files, name them in a particular sequence. Then use the gnuplot module in Python to plot them consecutively with a loop.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.