LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-30-2011, 03:09 AM   #1
haiying7
LQ Newbie
 
Registered: Nov 2011
Location: Sydney, Australia
Posts: 15

Rep: Reputation: Disabled
Question How to use .plot file to draw a graph?


Hi,

Is ".plot" file a script program or just a file? How can I run it? When I open it, it is like
Code:
# Gnuplot script file for plotting data in file "xxx.dat"
# This file is called   xxx.p
set xlabel "Time (s)"
set ylabel "Speed (m/s)"
...
 
Old 11-30-2011, 06:37 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
It is a script for gnuplot. You can either run it directly when invoking gnuplot:
Code:
gnuplot xxx.p
Or you can load and run it from the gnuplot interactive command line
Code:
gnuplot
load 'xxx.p'
 
Old 12-02-2011, 02:24 AM   #3
haiying7
LQ Newbie
 
Registered: Nov 2011
Location: Sydney, Australia
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by neonsignal View Post
It is a script for gnuplot. You can either run it directly when invoking gnuplot:
Code:
gnuplot xxx.p
Or you can load and run it from the gnuplot interactive command line
Code:
gnuplot
load 'xxx.p'
Thanks you. I know .p file should be run by gnuplot, but the name of this file is ".plot", why it said "This file is called xxx.p"?
 
Old 12-02-2011, 02:58 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Bookworm (Fluxbox WM)
Posts: 1,391
Blog Entries: 54

Rep: Reputation: 360Reputation: 360Reputation: 360Reputation: 360
Quote:
Originally Posted by haiying7 View Post
the name of this file is ".plot", why it said "This file is called xxx.p"?
Either it got renamed, or the person who wrote it just copied the contents from somewhere else. It doesn't matter what extension it has, although '.p' tends to be the usual default for gnuplot.
 
1 members found this post helpful.
Old 12-06-2011, 01:20 AM   #5
haiying7
LQ Newbie
 
Registered: Nov 2011
Location: Sydney, Australia
Posts: 15

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by neonsignal View Post
Either it got renamed, or the person who wrote it just copied the contents from somewhere else. It doesn't matter what extension it has, although '.p' tends to be the usual default for gnuplot.
THX...
 
  


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
plot trace file into a graph tootz Linux - Software 14 04-26-2012 03:07 AM
how to plot a graph using cacti with rrd database? HariharanV Linux - Software 1 11-03-2011 02:56 PM
how to draw graph in c amolgupta Programming 5 03-25-2009 12:14 PM
Can't draw MRTG graph for MAX TNT RAS kmkhan Linux - General 0 09-24-2007 04:21 AM
.plot file printing Pier Linux - General 0 12-18-2005 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:50 AM.

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