LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-30-2011, 01:19 PM   #1
BMan8577
Member
 
Registered: Apr 2011
Posts: 73

Rep: Reputation: 0
Thumbs up I have a couple of questions about the gnuplot....


I want to create a simple text file such as script.gnuplot which will act as a script to drive the gnuplot and when it reads the script from the stdin I want to plot a simple mathematical expression with using the sine of x or x squared. I looked at the man page of gnuplot but it didn't help too much with how to input a mathematical expression. Thanks again and I'm actually getting the hang of this a little bit now...lol. Thanks guys really really appreciated!!
 
Old 04-30-2011, 01:55 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Did you try reading the documentation (this is for version 4.4)? Section 6 of that document tells you how to read commands from a file.

Plotting standard functions can be done as you might think:

gnuplot> plot sin(x)

For powers, it seems you have to use '**' (like in FORTRAN):

gnuplot> plot x**2

The documentation should cover these things, too.

Last edited by Nylex; 04-30-2011 at 01:57 PM.
 
  


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
couple of questions?? Lucas10 Linux - Newbie 23 06-04-2005 06:45 PM
couple questions seifenblasen Linux - Newbie 1 03-25-2005 02:28 PM
couple of questions nickbird Linux - Security 2 01-27-2005 08:11 PM
Just a couple of questions... LI-6Y LUCY Linux - Newbie 4 09-07-2003 10:33 AM
Couple of questions figadiablo Linux - General 1 10-01-2002 11:54 AM

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

All times are GMT -5. The time now is 01:36 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