0% found this document useful (0 votes)
4 views37 pages

Gnu Plot

GnuPlot is a command-driven interactive program for plotting functions and data in two and three dimensions. Users can start GnuPlot by typing 'gnuplot' and can exit using 'quit', 'exit', or 'q'. The document provides examples of plotting functions and data points, including specific commands for different styles and ranges.

Uploaded by

soumava.cr7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views37 pages

Gnu Plot

GnuPlot is a command-driven interactive program for plotting functions and data in two and three dimensions. Users can start GnuPlot by typing 'gnuplot' and can exit using 'quit', 'exit', or 'q'. The document provides examples of plotting functions and data points, including specific commands for different styles and ranges.

Uploaded by

soumava.cr7
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 37

Basic Usage of Gnu Plot

What is GnuPlot?

• Introduction
GnuPlot is a command-driven interactive function plotting program.

• Operation

1. Plotting of two dimensional functions and data points in many


different style.
2. Plotting of three dimensional data points and surfaces in many
different style.
Starting and Quitting the GnuPlot

Basic screen of GnuPlot

• Starting : To start the GunPlot under Unix , just type the command
“gnuplot”.

• Quitting : To exit GnuPlot, you can type either quit, exit or


simply q.
Menubar in the Gnuplot

On the menu bar, you can use the source wish to select.

File Plot Expressions


General Axis 3D Style

Chart
Function
Plotting function

To start exploring GnuPlot, try the following command.

• Plot Function: The first plot command produces a plot of function.

In the first example, the range of


x is not specified,
so GnuPlot use its default range
of (-10,10).

Ex) plot cos(x)


• Plot interval function

2
The second plot command produces a plot of the functions sin x
and cos e x on the same graph, with x in the range (-π, π).

In the second example, the phrase


[-pi:pi] following plot tells
GnuPlot to produce the plot with x
in the range This tells GnuPlot to
plot both functions on the same
plot.

Ex) plot [-pi : pi] sin(x**2),cos(exp(x))


Plotting the data

gnuplot> plot “map.dat” u 1:2 t “” w p 3

Explanation : Point style using 3 color is pressed w p 3.

: File for map.dat plot using data.

: First column equal to x,second column equal to


y. (u 1:2)

Represented data
Summary

• GnuPlot is function plotting program using the command.

• GnuPlot can plot data.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy