Difference between revisions of "Gnuplot/C2/Introduction-to-Gnuplot/English"

From Script | Spoken-Tutorial
Jump to: navigation, search
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
 
|-
 
|-
 
||'''Slide Number 1'''
 
||'''Slide Number 1'''
'''Title Slide '''
+
'''Title Slide'''
 +
 
 
'''Introduction to gnuplot'''
 
'''Introduction to gnuplot'''
|| Welcome to the spoken tutorial on '''Introduction to gnuplot.'''
+
|| Welcome to the spoken tutorial on '''Introduction to gnuplot'''.
  
 
|-
 
|-
 
|| '''Slide Number 2'''
 
|| '''Slide Number 2'''
 +
 
'''Learning Objectives'''
 
'''Learning Objectives'''
 
|| In this tutorial, we will learn to
 
|| In this tutorial, we will learn to
 
* Download and install '''gnuplot''' 5.2.6
 
* Download and install '''gnuplot''' 5.2.6
 
* Test the installation and
 
* Test the installation and
* Test the '''terminal capability'''
+
* Test the terminal capability
  
 
|-
 
|-
 
|| '''Slide Number 3'''
 
|| '''Slide Number 3'''
'''System and Software Requirement'''
+
 
 +
'''System Requirements'''
 
|| To record this tutorial, I am using
 
|| To record this tutorial, I am using
 
* '''Debian Linux''' 9.3
 
* '''Debian Linux''' 9.3
Line 36: Line 39:
 
|-
 
|-
 
|| '''Slide Number 5'''
 
|| '''Slide Number 5'''
 +
 
'''Download link'''
 
'''Download link'''
|| The official download link for''' gnuplot''' is '''gnuplot dot info.'''
+
|| The official download link for '''gnuplot''' is '''gnuplot dot info'''.
The '''gnuplot '''software is available for all operating systems.
+
 
 +
The '''gnuplot''' software is available for all operating systems.
  
 
|-
 
|-
Line 45: Line 50:
  
 
|-
 
|-
|| Press Windows key
+
|| Press Windows key.
 
|| Press the '''Windows''' key on the keyboard.
 
|| Press the '''Windows''' key on the keyboard.
  
 
|-
 
|-
 
|| Type '''firefox''' >> press '''Enter'''
 
|| Type '''firefox''' >> press '''Enter'''
|| In the '''search bar,''' type '''firefox''' and press '''Enter'''.
+
|| In the '''search bar''', type '''firefox''' and press '''Enter'''.
 
'''Firebox web browser''' opens on the screen.
 
'''Firebox web browser''' opens on the screen.
  
 
|-
 
|-
 
|| Type '''gnuplot.info''' >> press '''Enter'''
 
|| Type '''gnuplot.info''' >> press '''Enter'''
|| In the '''address bar''', type '''gnuplot dot info''' and press '''Enter.'''
+
|| In the '''address bar''', type '''gnuplot dot info''' and press '''Enter'''.
  
We are now in the official '''Homepage''' of '''Gnuplot.'''
+
We are now in the official '''Homepage''' of '''Gnuplot'''.
  
 
|-
 
|-
Line 65: Line 70:
 
|-
 
|-
 
|| Hover mouse next to current version and release '''5.2.6'''
 
|| Hover mouse next to current version and release '''5.2.6'''
|| The current version of this software is 5.2 and '''release''' is 5.2.6
+
|| The current version of this software is 5.2 and '''release''' is 5.2.6.
 +
 
 
This was the version number at the time of recording this tutorial.
 
This was the version number at the time of recording this tutorial.
  
Line 72: Line 78:
 
|-
 
|-
 
|| Hover mouse over Release notes, User manual and demonstration gallery
 
|| Hover mouse over Release notes, User manual and demonstration gallery
|| Notice the links for the '''Release Notes, User Manual''' and '''demo gallery.'''
+
|| Notice the links for the '''Release Notes''', ''User Manual''' and '''demo gallery'''.
  
 
|-
 
|-
Line 79: Line 85:
  
 
|-
 
|-
||  
+
|| Cursor on the browser.
 
|| We are redirected to another web page.
 
|| We are redirected to another web page.
  
Line 85: Line 91:
  
 
|-
 
|-
|| Click on the '''Parent folder'''
+
|| Click on the '''Parent folder''' link >> scroll down.
 
|| Click on the '''Parent folder''' link and scroll down.
 
|| Click on the '''Parent folder''' link and scroll down.
  
 
|-
 
|-
|| Point to the different versions
+
|| Point to the different versions.
 
|| Notice the different versions of the '''gnuplot''' software.
 
|| Notice the different versions of the '''gnuplot''' software.
  
 
|-
 
|-
|| Click on '''5.2.6''' link
+
|| Click on '''5.2.6''' link.
|| I will click on the '''5.2.6 link.'''
+
|| I will click on the '''5.2.6 link'''.
  
 
|-
 
|-
Line 106: Line 112:
 
|-
 
|-
 
|| Hover mouse next to .exe , .html readme files
 
|| Hover mouse next to .exe , .html readme files
|| '''Dot exe''' files are for '''Windows operating system.'''
+
|| '''Dot exe''' files are for '''Windows operating system'''.
  
 
|-
 
|-
Line 119: Line 125:
 
|| Save dialog box
 
|| Save dialog box
 
|| After a short pause, the '''Save''' dialog box opens.
 
|| After a short pause, the '''Save''' dialog box opens.
In some '''Linux '''versions, the download may begin automatically.
+
 
 +
In some '''Linux''' versions, the download may begin automatically.
  
 
|-
 
|-
Line 125: Line 132:
 
|| In the '''Save''' dialog box, choose '''Save File''' option.
 
|| In the '''Save''' dialog box, choose '''Save File''' option.
  
And then click on the '''Ok '''button at the bottom, to download the '''tar gz file.'''
+
Then click on the '''Ok''' button at the bottom, to download the '''tar gz file.'''
  
 
|-
 
|-
|| Narration only
+
|| Point to download arrow.
 
|| Wait for the download to complete.
 
|| Wait for the download to complete.
  
  
 
|-
 
|-
|| Narration only
+
||  
 
|| Let's now extract the required files and install '''gnuplot''' using the '''terminal.'''
 
|| Let's now extract the required files and install '''gnuplot''' using the '''terminal.'''
  
 
|-
 
|-
|| Press '''Ctrl Alt T'''
+
|| Press '''Ctrl+ Alt + T'''
|| Let us open a '''terminal''' by pressing '''Control, Alt '''and''' T''' keys together.
+
|| Let us open a '''terminal''' by pressing '''Control, Alt '''and '''T''' keys together.
  
 
|-
 
|-
|| Narration only
+
|| Point to the file in Downloads folder.
 
|| The downloaded file is in my '''Downloads''' folder.
 
|| The downloaded file is in my '''Downloads''' folder.
  
Line 147: Line 154:
 
|| Type '''cd Downloads/''' and press '''Enter'''
 
|| Type '''cd Downloads/''' and press '''Enter'''
 
|| In the '''terminal prompt''', I will type,
 
|| In the '''terminal prompt''', I will type,
'''cd space Downloads slash''' and press '''Enter.'''
+
'''cd space Downloads slash''' and press '''Enter'''.
  
 
|-
 
|-
Line 155: Line 162:
 
|-
 
|-
 
|| '''>tar -xvf gnuplot-5.2.6.tar.gz''' and '''Enter'''
 
|| '''>tar -xvf gnuplot-5.2.6.tar.gz''' and '''Enter'''
|| To extract files from the '''tar gz '''file, type the following '''command-'''
+
|| To extract files from the '''tar gz '''file, type the following '''command'''.
  
 
'''tar space hyphen xvf space gnuplot hyphen 5 dot 2 dot 6 dot tar dot gz'''.
 
'''tar space hyphen xvf space gnuplot hyphen 5 dot 2 dot 6 dot tar dot gz'''.
Line 176: Line 183:
 
|| Now, let’s go to the newly created directory.
 
|| Now, let’s go to the newly created directory.
  
To do so, type '''cd space gnuplot hyphen 5 dot 2 dot 6 slash''' and press '''Enter.'''
+
To do so, type '''cd space gnuplot hyphen 5 dot 2 dot 6 slash''' and press '''Enter'''.
  
 
|-
 
|-
Line 183: Line 190:
 
'''gedit space RELEASE underscore NOTES '''and press '''Enter'''.
 
'''gedit space RELEASE underscore NOTES '''and press '''Enter'''.
  
I have used '''gedit text editor'''. But you may use any '''text editor '''of your choice.
+
I have used '''gedit text editor'''. But you may use any '''text editor''' of your choice.
  
 
|-
 
|-
 
|| Scroll down the file '''Release_notes'''
 
|| Scroll down the file '''Release_notes'''
|| Let's scroll down to the''' Installation''' section.
+
|| Let's scroll down to the '''Installation''' section.
  
 
|-
 
|-
 
|| Hover mouse next to install section
 
|| Hover mouse next to install section
|| Installation has three parts - '''build, test''' and '''install'''.
+
|| Installation has three parts - '''build''', '''test''' and '''install'''.
  
 
|-
 
|-
Line 199: Line 206:
 
|-
 
|-
 
|| Close '''gedit''', click on ''''x'''' sign
 
|| Close '''gedit''', click on ''''x'''' sign
|| To compile and install, we will use''' terminal commands. '''
+
|| To compile and install, we will use '''terminal commands'''.
  
So, let's close the '''text editor '''now.
+
So, let's close the '''text editor''' now.
  
 
|-
 
|-
 
|| Go to '''terminal'''
 
|| Go to '''terminal'''
|| Go back to the '''terminal.'''
+
|| Go to the '''terminal'''.
  
 
|-
 
|-
||  
+
|| Press '''Enter''' key.
|| From now onwards, press '''Enter''' key after each '''command '''to execute it.  
+
|| From now on-wards, press '''Enter''' key after each '''command '''to execute it.  
  
 
|-
 
|-
 
|| Type '''sudo ./configure''' >> Press '''Enter'''.
 
|| Type '''sudo ./configure''' >> Press '''Enter'''.
|| Type '''sudo space dot slash configure'''
+
|| Type '''sudo space dot slash configure'''.
  
 
|-
 
|-
Line 222: Line 229:
  
 
|-
 
|-
|| Press '''Ctrl + Shift + K '''keys
+
|| Press '''Ctrl + Shift + K''' keys
|| Let me clear the '''terminal.'''
+
|| Let me clear the '''terminal'''.
  
 
|-
 
|-
 
|| Type '''sudo make''' >> '''Enter'''
 
|| Type '''sudo make''' >> '''Enter'''
|| Next type '''sudo space make'''
+
|| Next type '''sudo space make'''.
  
Let me clear the '''terminal.'''
+
Let me clear the '''terminal'''.
  
 
|-
 
|-
|| Type '''sudo make check ''' >> '''Enter'''
+
|| Type '''sudo make check ''' >> '''Enter'''.
 
|| Then type  
 
|| Then type  
 
'''sudo space make space check'''
 
'''sudo space make space check'''
Line 275: Line 282:
 
|-
 
|-
 
|| Type '''test '''>> '''Enter'''
 
|| Type '''test '''>> '''Enter'''
|| Next we will type '''test''' and press '''Enter.'''
+
|| Next we will type '''test''' and press '''Enter'''.
  
 
|-
 
|-
|| '''gnuplot''' '''window''' '''0''' opens
+
|| '''gnuplot window 0''' opens
 
|| A graphic '''gnuplot''' window '''0''' opens on the screen.
 
|| A graphic '''gnuplot''' window '''0''' opens on the screen.
  
Line 297: Line 304:
 
|-
 
|-
 
|| Point to the line widths and line styles
 
|| Point to the line widths and line styles
|| Various line widths and line styles possible in this '''terminal,''' are also displayed.
+
|| Various line widths and line styles possible in this '''terminal''', are also displayed.
  
 
|-
 
|-
Line 305: Line 312:
 
|-
 
|-
 
|| Point to the text and label rotation options
 
|| Point to the text and label rotation options
|| Text and label rotation, are also possible.
+
|| Text and label rotation are also possible.
  
 
|-
 
|-
 
|| Click on '''x '''sign in graphic window
 
|| Click on '''x '''sign in graphic window
|| Close the graphic window by clicking on the ''''x'''' icon at the top right.
+
|| Close the graphic window by clicking on the ''''x'''' icon on the top right.
  
 
|-
 
|-
|| Switch back to the terminal >>type '''q'''
+
|| Switch back to the terminal >> type '''q'''
|| To quit '''gnuplot''', in the '''terminal''' type '''q '''at the '''gnuplot prompt.'''
+
|| To quit '''gnuplot''', in the '''terminal''' type '''q '''at the '''gnuplot prompt'''.
  
 
|-
 
|-
|| Type '''gnuplot '''>> don’t press '''Enter'''
+
|| Type '''gnuplot ''' >> don’t press '''Enter'''
 
|| To open '''gnuplot''' again, open the '''terminal''' and type '''gnuplot'''.
 
|| To open '''gnuplot''' again, open the '''terminal''' and type '''gnuplot'''.
  
 
|-
 
|-
 
|| '''Slide Number 6'''
 
|| '''Slide Number 6'''
 +
 
'''Summary'''
 
'''Summary'''
 
|| Now let's summarize.  
 
|| Now let's summarize.  
 
In this tutorial, we
 
In this tutorial, we
 
* Downloaded and installed '''gnuplot 5.2.6 '''in''' Debian Linux 9.3''' and
 
* Downloaded and installed '''gnuplot 5.2.6 '''in''' Debian Linux 9.3''' and
* Tested the '''terminal capability''' of the software.
+
* Tested the terminal capability of the software.
  
 
|-
 
|-
 
|| '''Slide Number 7'''
 
|| '''Slide Number 7'''
'''Spoken Tutorial Project'''
+
'''About the Spoken Tutorial Project'''
 
|| This video summarises the '''Spoken Tutorial Project '''
 
|| This video summarises the '''Spoken Tutorial Project '''
 
Please download and watch it.
 
Please download and watch it.
Line 335: Line 343:
 
|-
 
|-
 
|| '''Slide Number 8'''
 
|| '''Slide Number 8'''
'''Spoken Tutorial workshops'''
+
'''Spoken Tutorial Workshops'''
 
|| The '''Spoken Tutorial Project''' Team conducts workshops and gives certificates.  
 
|| The '''Spoken Tutorial Project''' Team conducts workshops and gives certificates.  
  
Line 342: Line 350:
 
|-
 
|-
 
|| '''Slide Number 9'''
 
|| '''Slide Number 9'''
'''Forum for specific questions:'''
+
'''Forum for Specific Questions:'''
 
|| Do you have questions in THIS Spoken Tutorial?
 
|| Do you have questions in THIS Spoken Tutorial?
  
Line 355: Line 363:
 
|-
 
|-
 
|| '''Slide Number 10'''
 
|| '''Slide Number 10'''
'''Acknowledgement'''
+
'''Acknowledgements'''
 
|| '''Spoken Tutorial Project''' is funded by '''NMEICT, MHRD, Government of India.'''
 
|| '''Spoken Tutorial Project''' is funded by '''NMEICT, MHRD, Government of India.'''
 
More information on this mission is available at this link.
 
More information on this mission is available at this link.

Latest revision as of 16:51, 2 August 2019

Visual Cue Narration
Slide Number 1

Title Slide

Introduction to gnuplot

Welcome to the spoken tutorial on Introduction to gnuplot.
Slide Number 2

Learning Objectives

In this tutorial, we will learn to
  • Download and install gnuplot 5.2.6
  • Test the installation and
  • Test the terminal capability
Slide Number 3

System Requirements

To record this tutorial, I am using
  • Debian Linux 9.3
  • gedit text editor 3.22
  • Firefox web browser 52.5 and
  • Working Internet connection to download gnuplot

However you can use any text editor and web browser of your choice.

Slide Number 4

Pre-requisites

To follow this tutorial, learners must be familiar with high school mathematics.
Slide Number 5

Download link

The official download link for gnuplot is gnuplot dot info.

The gnuplot software is available for all operating systems.

I will use Firefox web browser to download the latest version of gnuplot.
Press Windows key. Press the Windows key on the keyboard.
Type firefox >> press Enter In the search bar, type firefox and press Enter.

Firebox web browser opens on the screen.

Type gnuplot.info >> press Enter In the address bar, type gnuplot dot info and press Enter.

We are now in the official Homepage of Gnuplot.

Scroll the page I will scroll down the page.
Hover mouse next to current version and release 5.2.6 The current version of this software is 5.2 and release is 5.2.6.

This was the version number at the time of recording this tutorial.

When you practice this tutorial, the current version or release could be different.

Hover mouse over Release notes, User manual and demonstration gallery Notice the links for the Release Notes', User Manual and demo gallery.
Click on link for Release 5.2.6 Click on the link for Release.
Cursor on the browser. We are redirected to another web page.

Next, let's download the required files.

Click on the Parent folder link >> scroll down. Click on the Parent folder link and scroll down.
Point to the different versions. Notice the different versions of the gnuplot software.
Click on 5.2.6 link. I will click on the 5.2.6 link.
Point or highlight The latest version release link is seen in green color.
Scroll the page Scroll down the refreshed page and notice the various downloadable files.
Hover mouse next to .exe , .html readme files Dot exe files are for Windows operating system.
Point and click gnuplot-5.2.6.tar.gz file If you have a Linux system, click on gnuplot hyphen 5 point 2 point 6 dot tar dot gz
Another page We are redirected to another page.
Save dialog box After a short pause, the Save dialog box opens.

In some Linux versions, the download may begin automatically.

Choose Save file >> click Ok In the Save dialog box, choose Save File option.

Then click on the Ok button at the bottom, to download the tar gz file.

Point to download arrow. Wait for the download to complete.


Let's now extract the required files and install gnuplot using the terminal.
Press Ctrl+ Alt + T Let us open a terminal by pressing Control, Alt and T keys together.
Point to the file in Downloads folder. The downloaded file is in my Downloads folder.
Type cd Downloads/ and press Enter In the terminal prompt, I will type,

cd space Downloads slash and press Enter.

Highlight Downloads In case you have saved the file in a different folder, then type that folder name.
>tar -xvf gnuplot-5.2.6.tar.gz and Enter To extract files from the tar gz file, type the following command.

tar space hyphen xvf space gnuplot hyphen 5 dot 2 dot 6 dot tar dot gz.


Then press Enter.

Hover mouse next to newly created directory gnuplot-5.2.6 A new directory gnuplot hyphen 5 dot 2 dot 6 is created in the Downloads folder.

The files are extracted to the new directory.

Ctrl Shift K I will clear the terminal and bring the prompt back to the top.
cd gnuplot-5.2.6/ >> Enter Now, let’s go to the newly created directory.

To do so, type cd space gnuplot hyphen 5 dot 2 dot 6 slash and press Enter.

gedit RELEASE_NOTES Now type

gedit space RELEASE underscore NOTES and press Enter.

I have used gedit text editor. But you may use any text editor of your choice.

Scroll down the file Release_notes Let's scroll down to the Installation section.
Hover mouse next to install section Installation has three parts - build, test and install.
Point to the installation part of the code The commands required for installation are mentioned here.
Close gedit, click on 'x' sign To compile and install, we will use terminal commands.

So, let's close the text editor now.

Go to terminal Go to the terminal.
Press Enter key. From now on-wards, press Enter key after each command to execute it.
Type sudo ./configure >> Press Enter. Type sudo space dot slash configure.
If prompted for password, enter sudo password. If prompted for password, type the sudo password.

Wait for the process to be completed.

Press Ctrl + Shift + K keys Let me clear the terminal.
Type sudo make >> Enter Next type sudo space make.

Let me clear the terminal.

Type sudo make check >> Enter. Then type

sudo space make space check

A graphics window appears and disappears.

And we are back on the terminal.

Press Ctrl + Shift + K keys Let me clear the terminal.
Type sudo make install and enter Now type this command-

sudo space make space install

gnuplot is now getting installed on the computer.

Wait for the installation to complete.

Press Ctrl + Shift + K keys Let me clear the terminal.
Type gnuplot

Hover mouse next to gnuplot prompt Hover mouse next to x11

Type gnuplot and press Enter to get the gnuplot prompt.

This shows the terminal type as x11.

Screenshots of Ubuntu Linux and Windows OS On Ubuntu Linux and Windows OS, the terminal type will be qt.
Type test >> Enter Next we will type test and press Enter.
gnuplot window 0 opens A graphic gnuplot window 0 opens on the screen.

This graphic window allows to view plots and graphs.

The test command shows the capability of the interactive terminal in gnuplot.
Point to the various color options. The various color options available for this terminal is shown.
Point to the symbol or point styles. The symbol or point styles are also indicated.
Point to the line widths and line styles Various line widths and line styles possible in this terminal, are also displayed.
Point to the bar chart The bar chart displays the possible variations in the pattern fill.
Point to the text and label rotation options Text and label rotation are also possible.
Click on x sign in graphic window Close the graphic window by clicking on the 'x' icon on the top right.
Switch back to the terminal >> type q To quit gnuplot, in the terminal type q at the gnuplot prompt.
Type gnuplot >> don’t press Enter To open gnuplot again, open the terminal and type gnuplot.
Slide Number 6

Summary

Now let's summarize.

In this tutorial, we

  • Downloaded and installed gnuplot 5.2.6 in Debian Linux 9.3 and
  • Tested the terminal capability of the software.
Slide Number 7

About the Spoken Tutorial Project

This video summarises the Spoken Tutorial Project

Please download and watch it.

Slide Number 8

Spoken Tutorial Workshops

The Spoken Tutorial Project Team conducts workshops and gives certificates.

For more details, please write to us.

Slide Number 9

Forum for Specific Questions:

Do you have questions in THIS Spoken Tutorial?

Please visit forums dot spoken hyphen tutorial dot org.

Choose the minute and second where you have the question.

Explain your question briefly.

Someone from our team will answer them.

Slide Number 10

Acknowledgements

Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.

More information on this mission is available at this link.

This is Rani from IIT Bombay.

Thank you for joining.

Contributors and Content Editors

Madhurig, Nancyvarkey, Rani.parvathy, Ranipv076