LinuxQuestions.org
Review your favorite Linux distribution.
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, 04: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, 07:37 AM   #2
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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, 03: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, 03:58 AM   #4
neonsignal
Senior Member
 
Registered: Jan 2005
Location: Melbourne, Australia
Distribution: Debian Stretch (Fluxbox WM)
Posts: 1,389
Blog Entries: 52

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
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, 02: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

All times are GMT -5. The time now is 01:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration