1 / 9

Basic Usage of GnuPlot

Basic Usage of GnuPlot. Hyun Hee Shim Department of Physics Kangwon National University. What is GnuPlot?. Introduction. GnuPlot is a command-driven interactive function plotting program. Operation.

walkerk
Download Presentation

Basic Usage of GnuPlot

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Basic Usage of GnuPlot Hyun Hee Shim Department of Physics Kangwon National University

  2. What is GnuPlot? • Introduction GnuPlot is a command-driven interactive function plotting program. • Operation • Plotting of two dimensional functions and data points in many • different style. • Plotting of three dimensional data points and surfaces in many • different style.

  3. 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.

  4. Menubar in the Gnuplot On the menu bar, you can use the source wish to select. File Plot Expressions

  5. General Axis 3D Style Chart Function

  6. 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)

  7. Plot interval function The second plot command produces a plot of the functions sin and cos 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))

  8. 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

  9. GnuPlot is function plotting program using the command. Summary • GnuPlot can plot data.

More Related