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

From Script | Spoken-Tutorial
Jump to: navigation, search
Line 16: Line 16:
 
* 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'''
  
 
|-
 
|-
Line 25: Line 25:
 
* '''gedit text editor''' 3.22
 
* '''gedit text editor''' 3.22
 
* '''Firefox web browser 52.5''' and  
 
* '''Firefox web browser 52.5''' and  
* Working internet connection to download '''gnuplot'''
+
* Working '''Internet''' connection to download '''gnuplot'''
  
 
However you can use any '''text editor''' and '''web browser''' of your choice.
 
However you can use any '''text editor''' and '''web browser''' of your choice.
Line 49: Line 49:
  
 
|-
 
|-
|| Type '''firefox''' and 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''' and 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 64: Line 65:
 
|-
 
|-
 
|| 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.
When you practice this tutorial, the current '''version''' or '''release''' could be different.
+
 
 +
When you practice this tutorial, the current version or '''release''' could be different.
  
 
|-
 
|-
 
|| 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 81:
 
||  
 
||  
 
|| We are redirected to another web page.
 
|| We are redirected to another web page.
 +
 
Next, let's download the required files.
 
Next, let's download the required files.
  
Line 87: Line 90:
 
|-
 
|-
 
|| 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.
  
 
|-
 
|-
Line 120: Line 123:
 
|-
 
|-
 
|| Choose '''Save file''' >> click '''Ok'''
 
|| Choose '''Save file''' >> click '''Ok'''
|| 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.'''
 
And then click on the '''Ok '''button at the bottom, to download the '''tar gz file.'''
  
Line 126: Line 130:
 
|| Narration only
 
|| Narration only
 
|| Wait for the download to complete.
 
|| Wait for the download to complete.
This may take some time depending on your '''internet''' speed.
+
 
 +
This may take some time depending on your '''Internet''' speed.
  
 
|-
 
|-
Line 143: Line 148:
 
|| 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 backslash Downloads''' and press '''Enter.'''
+
'''cd space Downloads backslash''' and press '''Enter.'''
  
 
|-
 
|-
Line 152: Line 157:
 
|| '''>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  
 
'''tar space hyphen xvf space gnuplot hyphen 5 dot 2 dot 6 dot tar dot  
 
Then press '''Enter.'''
 
Then press '''Enter.'''
Line 158: Line 164:
 
|| Hover mouse next to newly created directory '''gnuplot-5.2.6'''
 
|| 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.
 
|| A new directory '''gnuplot hyphen 5 dot 2 dot 6''' is created in the '''Downloads''' folder.
 +
 
The files are extracted into the new directory.
 
The files are extracted into the new directory.
  
Line 165: Line 172:
  
 
|-
 
|-
|| '''cd gnuplot-5.2.6''' and '''enter'''
+
|| '''cd gnuplot-5.2.6''' >> '''Enter'''
 
|| 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''' and press '''Enter.'''
 
To do so, type '''cd space gnuplot hyphen 5 dot 2 dot 6''' and press '''Enter.'''
  
Line 173: Line 181:
 
|| Now type
 
|| Now type
 
'''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.
  
 
|-
 
|-
Line 190: Line 199:
 
|| 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.
  
Line 201: Line 211:
  
 
|-
 
|-
|| Type '''sudo bash ./configure'''
+
|| Type '''sudo bash ./configure''' >> Press '''Enter'''.
Press '''Enter'''
+
 
|| Type '''sudo space dot backslash configure'''
 
|| Type '''sudo space dot backslash configure'''
  
 
|-
 
|-
|| If prompted for '''password''', enter '''sudo''' '''password'''.
+
|| If prompted for '''password''', enter '''sudo password'''.
|| If prompted for '''password''', type the '''sudo''' '''password'''.
+
|| If prompted for '''password''', type the '''sudo password'''.
 +
 
 
Wait for the process to be completed.  
 
Wait for the process to be completed.  
  
Line 215: Line 225:
  
 
|-
 
|-
|| 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 '''and '''enter'''
+
|| Type '''sudo make check ''' >> '''Enter'''
 
|| Then type  
 
|| Then type  
'''sudo''' '''space''' '''make space check'''
+
'''sudo space make space check'''
 +
 
 
Let me clear the '''terminal.'''
 
Let me clear the '''terminal.'''
  
 
|-
 
|-
 
||  
 
||  
|| A graphics window appears and disappears
+
|| A graphics window appears and disappears.
 +
 
 
And we are back on the '''terminal'''.
 
And we are back on the '''terminal'''.
  
 
|-
 
|-
 
|| Press '''Ctrl + Shift + K '''keys
 
|| Press '''Ctrl + Shift + K '''keys
|| Once again, let me clear the '''terminal'''.
+
|| Let me clear the '''terminal'''.
  
 
|-
 
|-
 
|| Type '''sudo''' '''make install''' and '''enter'''
 
|| Type '''sudo''' '''make install''' and '''enter'''
|| Now type this '''command'''
+
|| Now type this '''command'''-
'''sudo space''' '''make space install'''
+
'''sudo space make space install'''
  
 
|-
 
|-
 
||  
 
||  
 
|| '''gnuplot '''is now getting installed on the computer.
 
|| '''gnuplot '''is now getting installed on the computer.
 +
 
Wait for the installation to complete.
 
Wait for the installation to complete.
  
Line 253: Line 267:
 
Hover mouse next to '''x11'''
 
Hover mouse next to '''x11'''
 
|| Type '''gnuplot''' and press '''Enter '''to get the '''gnuplot prompt.'''
 
|| Type '''gnuplot''' and press '''Enter '''to get the '''gnuplot prompt.'''
 +
 
This shows the '''terminal type''' as '''x11.'''
 
This shows the '''terminal type''' as '''x11.'''
  
Line 265: Line 280:
 
|-
 
|-
 
|| '''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.
 +
 
 
This graphic window allows to view plots and graphs.
 
This graphic window allows to view plots and graphs.
  
Line 310: Line 326:
 
In this tutorial, we
 
In this tutorial, we
 
* Downloaded and installed '''gnuplot '''in''' Debian Linux 9.3''' and
 
* Downloaded and installed '''gnuplot '''in''' Debian Linux 9.3''' and
* Tested the '''terminal '''capability of the '''software'''
+
* Tested the '''terminal capability''' of the software.
  
 
|-
 
|-
Line 321: Line 337:
 
|| '''Slide Number 8'''
 
|| '''Slide Number 8'''
 
'''Spoken Tutorial workshops'''
 
'''Spoken Tutorial workshops'''
|| The '''Spoken Tutorial Project''' Team  
+
|| The '''Spoken Tutorial Project''' Team conducts workshops and gives certificates.  
* conducts workshops''' '''and  
+
 
* gives certificates.  
+
 
For more details, please write to us.  
 
For more details, please write to us.  
  
Line 330: Line 345:
 
'''Forum for specific questions:'''
 
'''Forum for specific questions:'''
 
|| Do you have questions in THIS Spoken Tutorial?
 
|| 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
+
Please visit forums dot spoken hyphen tutorial dot org.
Explain your question briefly
+
 
Someone from our team will answer them
+
Choose the minute and second where you have the question.
 +
 
 +
Explain your question briefly.
 +
 
 +
Someone from our team will answer them.
  
 
|-
 
|-

Revision as of 08:03, 11 June 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 and Software Requirement

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.
We are redirected to another web page.

Next, let's download the required files.

Click on the Parent folder 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 We’ll 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.

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

Narration only Wait for the download to complete.

This may take some time depending on your Internet speed.

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

cd space Downloads backslash 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 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 into 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 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 back to the terminal.
From now onwards, press Enter key after each command to execute it.
Type sudo bash ./configure >> Press Enter. Type sudo space dot backslash 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

Let me clear the terminal.

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 at 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 in Debian Linux 9.3 and
  • Tested the terminal capability of the software.
Slide Number 7

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

Acknowledgement

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