|
|
(12 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
− | '''[Title of script''': {{anchor|DdeLink25781167434169}} '''Example''' '''Scripts and demo folder'''
| + | {|border=1 |
| + | ||'''Visual Cue''' |
| + | || '''Narration''' |
| | | |
− | '''Author: '''Rani Parvathy | + | |- |
− | | + | || '''Slide Number 1''' |
− | '''Keywords:''' gnuplot, video tutorial, spoken tutorial, installation, set term, demo folder, example files, styles, scripts, script structure. | + | '''Title Slide ''' |
| + | || Welcome to the tutorial on '''Example Scripts and Demo Folder'''. |
| | | |
| + | |- |
| + | || '''Slide Number 2''' |
| + | '''Learning Objectives''' |
| + | || In this tutorial, we will learn, |
| + | * About''' gnuplot terminal '''and the''' graphics''' interface |
| + | * About the '''demo''' folder of '''gnuplot''' |
| + | * About '''example script''' files and |
| + | * To load the script file to generate a graph |
| | | |
| + | |- |
| + | || '''Slide Number 3''' |
| + | '''System and Software Requirement''' |
| + | || To record this tutorial, I am using |
| + | * '''Debian Linux''' 9.3 |
| + | * '''gnuplot''' 5.2.6 |
| + | * '''gedit text editor''' 3.22 |
| + | * '''Firefox web browser 52.5''' |
| + | and |
| + | * Working Internet connection to access online '''script''' files |
| | | |
− | {| style="border-spacing:0;width:6.8528in;"
| |
| |- | | |- |
− | ! align=center style="background-color:#993366;border-top:1pt solid #000000;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | Visual Cue
| + | || '''Slide Number 4''' |
− | ! align=center style="background-color:#993366;border:1pt solid #000000;padding:0.0382in;" | Narration
| + | '''Pre-requisites''' |
− | |-
| + | || To follow this tutorial, |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''Slide Number 1'''</div>
| + | learner must be familiar with high school level Mathematics. |
| | | |
− | <div style="color:#000000;">'''Title Slide '''</div><div style="color:#000000;">'''Example Scripts and demo folder'''</div>
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Welcome to the tutorial on '''Example Scripts and demo folder'''
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''Slide Number 2'''</div> | + | || '''Slide Number 5''' |
| + | '''Extract gnuplot-5.2.6 folder''' |
| + | || At the time of installation, we downloaded and extracted the '''gnuplot''' folder. |
| | | |
− | <div style="color:#000000;">'''Learning Objectives'''</div>
| + | Generally, the folder '''gnuplot-5.2.6''' would be in the '''Downloads''' folder. |
| | | |
| + | |- |
| + | || '''Slide Number 6''' |
| + | '''Extract gnuplot-5.2.6 folder''' |
| + | || If you had saved it elsewhere, then use that location for the next steps. |
| | | |
| + | |- |
| + | || '''Slide Number 7''' |
| + | '''Missing gnuplot folder''' |
| + | || What should you do in case the '''gnuplot''' folder is missing on your machine? |
| | | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">In this tutorial, we will </div>
| + | You have to follow the steps explained in the prerequisite tutorials in this series. |
| | | |
| + | |- |
| + | || Open '''file manager''', go to '''Downloads, gnuplot-5.2.6''' and '''demo''' folder |
| + | || Open file manager. |
| | | |
− | * <div style="color:#000000;">Familiarize with '''gnuplot'''</div>
| + | In my machine, this icon is located on the menu bar at the bottom. |
− | * <div style="color:#000000;">Familiarize with '''demo''' folder of '''gnuplot''' </div><br/><div style="color:#000000;">and</div>
| + | |
− | * <div style="color:#000000;">Familiarize with '''scripts''', example files and graphics interface</div>
| + | |
| | | |
| + | Click on the '''File Manager '''icon. |
| + | |
| + | Navigate to '''Downloads''', '''gnuplot-5.2.6''' and then to '''demo''' folder. |
| | | |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''Slide Number 3'''</div> | + | || Scroll/highlight |
| + | || Notice the various files in the folder. |
| | | |
− | <div style="color:#000000;">'''System and Software Requirement'''</div>
| + | |- |
| + | || Press '''Ctrl+Alt+T''' keys |
| + | || We will now open a '''terminal''' by pressing '''Ctrl''', '''Alt''' and''' T''' keys simultaneously. |
| | | |
| + | |- |
| + | || '''cd Downloads/gnuplot-5.2.6/demo''' |
| + | || Type '''cd space Downloads slash gnuplot-5.2.6 slash demo ''' and press '''Enter.''' |
| | | |
| + | We are in the '''demo directory''', which contains the '''example''' files. |
| | | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">To record this tutorial, I am using</div> | + | |- |
| + | || Type '''ls '''and press '''enter''' |
| + | || Type '''ls''' to list the files in the '''demo directory'''. |
| | | |
| + | |- |
| + | || Hover mouse over the .dem extension files |
| + | || Notice there are several files with '''dot dem''' extension. |
| | | |
− | <div style="color:#000000;">'''Debian Linux'''</div>
| + | |- |
| + | || Scroll up |
| + | || They are simple text '''scripts''', which are used to generate plots. |
| | | |
| + | |- |
| + | || '''Ctrl+Shift+k''' on '''Debian (rdp)''' |
| + | "Ctrl+L" in '''Ubuntu''' |
| + | || Let me clear the screen. |
| | | |
− | <div style="color:#000000;">'''gedit''' 3.22.0</div>
| + | |- |
| + | || Cursor on the interface. |
| + | || Now let's look at the structure of an '''example script''' using a '''text editor.''' |
| | | |
| + | I will use '''gedit text editor. '''You can use any other '''editor''' of your choice. |
| | | |
− | <div style="color:#000000;">and</div>
| + | |- |
| + | || Type '''gedit simple.dem''' and press '''enter''' |
| + | || Type '''gedit space simple dot dem''' and press '''Enter'''. |
| | | |
| + | '''Windows''' users may open the file in '''Notepad'''. |
| + | |- |
| + | || Cursor in the text editor. |
| + | || The '''script''' file opens in the '''text editor '''window. |
| | | |
− | <div style="color:#000000;">'''Firefox''' web browser 52.5.0</div>
| |
| |- | | |- |
| + | || Hover mouse near required files in header. |
| + | Hover mouse next to the three functions in plot command. |
| + | || Details about this plot are mentioned in the '''header'''. |
| + | The required data files are also mentioned. |
| | | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''Slide Number 4'''</div>
| + | This '''script''' plots three '''functions''' together. |
| | | |
− | <div style="color:#000000;">'''Pre-requisites'''</div>
| + | |- |
| + | || Hover mouse next to left and right key in script |
| + | || Scroll down to view the entire file. |
| | | |
| + | This is the structure of a '''script file.''' |
| | | |
− | <div style="color:#000000;"></div>
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">To follow this tutorial, learners must be familiar with, </div>
| |
− |
| |
− |
| |
− | <div style="color:#000000;">Basic computer and internet skills</div>
| |
− |
| |
− |
| |
− | <div style="color:#000000;">And have Concept of graph, Mathematics knowledge</div>
| |
| |- | | |- |
| + | || Close '''gedit''' |
| + | || Now, close the '''text editor''' window. |
| | | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''Slide Number 5'''</div>
| |
− |
| |
− | <div style="color:#000000;">'''Download link'''</div>
| |
− |
| |
− |
| |
− |
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">Download link for '''gnuplot''' example files is gnuplot dot info</div>
| |
− |
| |
− |
| |
− | <div style="color:#000000;">Example Script files are downloaded in the tar ball </div>
| |
− |
| |
− |
| |
− | <div style="color:#000000;">They get extracted to the '''demo''' folder</div>
| |
− | |-
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | Press ctrl, alt t keys together.
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | First, open a '''terminal''', by pressing '''control, alt, t''' keys together on keyboard.
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || Go to terminal. |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | A '''terminal''' opens. | + | || Go to the '''terminal'''. |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || Cursor on the terminal |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | I have downloaded and extracted '''gnuplot''' files. | + | || Next, let's run this '''script''' in '''gnuplot''' and generate the plot. |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">The example files are in the demo folder of the extracted tar ball.</div>
| |
| | | |
| + | ||Type '''>gnuplot''' |
| + | Press enter |
| + | || In the '''terminal''', type '''gnuplot''' and press '''Enter'''. |
| | | |
− | <div style="color:#000000;">Change directory to the '''demo''' directory of the extracted tar ball. </div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | '''cd ~/Downloads/gnuplot-5.2.5/demo''' | + | || Hover mouse near gnuplot prompt |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">Enter command, as seen on the '''screen''' to change the directory.</div>
| + | || The '''prompt''' changes to '''gnuplot prompt.''' |
| + | To execute a '''command''' in the '''terminal''', press '''Enter''' after typing it. |
| + | I will not mention this separately. |
| | | |
| + | |- |
| + | || '''Ctrl shift k''' on rdp machine |
| + | || I will clear the '''terminal'''. |
| | | |
− | <div style="color:#000000;">Learners must change directory to the demo folder in their computer.</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || '''>load 'simple.dem' ''' |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Now working directory change, to demo folder. | + | || To load the '''script''', type '''load space''' within single quotes '''simple dot dem''' |
| + | |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || Click on '''graphics''' window. |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | There is a chance your computer does not have the demo files. | + | || A graphical window opens. |
| + | Click on this graphics window to activate it. |
| + | |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || Hover mouse next to s'''in(x), atan(x) and cos(atan(x)) ''' |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">If so, pause the video and download them from gnuplot website.</div> | + | || Three '''functions''', '''sin x''', '''atan x''' and ''' cos atan x''' are plotted. |
| | | |
− |
| |
− | <div style="color:#000000;">Extract the demo directory from the downloaded tar ball file.</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | '''>ls''' | + | || Scroll further in axis limits |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Enter command ls to list the files. | + | || Using arrow keys, scroll, left, right, up and down within the plot. |
− | |-
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Notice, several files with '''dot''' '''dem''' extension.
| + | |
− | |-
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | They are simple text scripts, which are used to generate plots
| + | |
− | |-
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | '''Ctrl - l'''
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | I will also clear the screen for clarity in video with control l command.
| + | |
− | |-
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | Demonstration files are short scripts that plot graphs
| + | |
| | | |
| + | Doing this allows us to scroll further in the axis limits. |
| | | |
− | <div style="color:#000000;">Let's look at their structure now.</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | Type '''gedit simple.dem''' and press enter | + | || Hover mouse next to “'''press enter to continue'''” and press enter |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Type '''gedit simple dot dem''' and press enter | + | || '''Simple dot dem''' can plot many graphs. |
| + | Go through the script file again, at this stage. |
| + | |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || Go to '''terminal''' |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">The script file opens in '''gedit'''</div> | + | || To see the next plot, do the following. |
| + | * Go to the '''terminal''' by clicking on it. |
| + | * We can read a message '''Hit return to continue'''. |
| | | |
| + | |- |
| + | || Hit '''return''' and click on Graphics window. |
| + | || Press the '''Enter '''key to continue. |
| + | From now on, you have to do this every time to get the next plot. |
| | | |
− | <div style="color:#000000;">Windows users may open the file in '''notepad,''' to study the structure of script</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | Point to header details. | + | || Show the change in graphics window |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">Details about this plot is mentioned in the header.</div> | + | || Immediately, the next '''script''' and it's '''function''' gets plotted. |
| | | |
| + | |- |
| + | || Press '''enter''' in '''terminal''' |
| + | || Press '''Enter''' again, as shown in the '''prompt''' to plot the other '''functions''' from the '''script'''. |
| | | |
− | <div style="color:#000000;">The required data files is mentioned</div>
| + | |- |
| + | || Show graphics window. |
| + | || Likewise, you can scroll through some more '''example '''files in the '''demo directory'''. |
| | | |
| + | |- |
| + | || Press''' Ctrl + C''' |
| + | || Press '''Ctrl''' and '''C''' keys in the '''terminal''', to come back to the '''gnuplot prompt.''' |
| | | |
− | <div style="color:#000000;">Details on this plot is also mentioned in the header.</div>
| + | |- |
| + | || Close graphical window |
| + | || Now I will close this graphical window. |
| | | |
| + | |- |
| + | || Cursor on the terminal. |
| + | || Now, I will open a '''3D plot example''' file next. |
| | | |
− | <div style="color:#000000;">This script plots three functions together.</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | Hover mouse next to left and right key in script | + | || '''load ‘hidden2.dem’''' and '''enter''' |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Scroll down and notice that left and right arrow keys are also assigned | + | || Load the '''hidden2 dot dem''' file on the '''terminal'''. |
| + | Use the '''command''' as shown before to load the '''script''' file. |
| + | |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | Close '''gedit''' | + | || Show the graph |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">Now we have seen a script structure. </div> | + | || A graphics window opens. |
| | | |
| + | |- |
| + | || Go terminal press enter, view graph , repeat for 3 graphs |
| + | || Go through the 3 examples of the '''3D plots''' this '''script''' can generate. |
| | | |
− | <div style="color:#000000;">Close '''gedit''' by clicking on ''''x'''' sign</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || Close the '''graphics terminal'''. |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Next, let's run them in gnuplot and generate the plot. | + | || Then close the '''graphics '''window. |
| + | |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">>qt</div> | + | || Cursor on the terminal. |
| + | || I encourage you to try other '''example''' files in this folder. |
| | | |
− | <div style="color:#000000;">Press enter</div>
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Set terminal to '''qt'''.
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''>gnuplot'''</div> | + | || Press '''q''' |
| + | || Type '''q''' to exit '''gnuplot.''' |
| | | |
− | <div style="color:#000000;">Press enter</div>
| + | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">In terminal prompt, type '''gnuplot''' and press enter to open gnuplot.</div> | + | || Open web browser. |
| + | || Many '''example scripts''' are available online for '''gnuplot''', as well. |
| | | |
− |
| |
− | <div style="color:#000000;">The prompt changes to gnuplot prompt.</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || Open web browser. |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">To execute a command in terminal, press enter.</div> | + | || I will show how to access the '''example''' files online in the next step. |
| | | |
| + | I will open a web browser. |
| | | |
− | <div style="color:#000000;">I will not mention it separately.</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | '''Ctrl + l''' | + | || Go to, '''gnuplot.sourceforge.net/demo_5.2''' |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">I will clear the screen and bring prompt to top of the terminal for clarity. </div> | + | || In the '''web browser''', go to the '''URL''' as shown here. |
| | | |
| + | |- |
| + | || Scroll down and show |
| + | || Notice that there are several '''examples''' available for users to learn from. |
| | | |
− | <div style="color:#000000;">Press '''control l''' on keyboard</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | '''>load space''' ''''simple.dem'''' | + | || Hover mouse over the routines |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">To load a script, enter command as seen. </div>
| + | || '''2D''' and '''3D''' graphs, '''histograms''' and '''curve fitting''' are few capabilities of the software. |
| | | |
| + | |- |
| + | || Click on '''Simple functions''' |
| + | || Under''' Basic 2D plot styles''', click on the '''simple functions''' link. |
| | | |
− | <div style="color:#000000;">We will run '''simple dot dem''' script.</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | Hover mouse next to '''Sin(x), atan(x) and cos(atan(x)) ''' | + | || Hover mouse over graph, pan right |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">This runs the script. A graphical window opens.</div> | + | || The left side shows the graphical plots. |
| | | |
| + | The simple '''scripts''' on the right side generate the plots. |
| | | |
− | <div style="color:#000000;">Three functions, s'''in x, atan x and cos atan x''' are plotted.</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || Scroll down left pan. |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | The assigned arrow keys allow the user to scroll further in the axis limits. | + | || Scroll down the page and notice the various '''styles''' seen in the plots on the left side. |
| + | |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | Hover mouse next to “'''press enter to continue'''” and press enter | + | || Hover mouse over graph |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Now, follow prompt and '''press enter to continue''' in terminal | + | || Notice the variations in symbols, color, legends, line style and filling area. |
| + | |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | Show the change in graphics window | + | || Cursor on the page. |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Then next script and it's function gets plotted.
| + | || Learners may use this page to learn the various '''commands''' and '''options.''' |
− | |- | + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Press enter again, as shown in prompt to plot the functions from script.
| + | |
− | |-
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | You may pause the video and scroll over more demonstration files.
| + | |
− | |-
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | I will now close the graphical window
| + | |
− | |-
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">We can also enter the commands sequentially in the terminal to generate plot.</div>
| + | |
| | | |
− |
| |
− | <div style="color:#000000;">Press '''control c''' to come back to gnuplot prompt.</div>
| |
− | |-
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | Press '''q'''
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Enter command, '''q''' or '''control c''' to exit gnuplot
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || '''Slide Number 8''' |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">Many example scripts are available online for '''gnuplot'''</div>
| + | '''Help Forum''' |
| + | || If we need help at any time, we can go to this URL |
| | | |
| + | https://sourceforge.net/p/gnuplot/discussion/ |
| | | |
− | <div style="color:#000000;">First open a web browser.</div>
| |
− | |-
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | <span style="background-color:transparent;">I will</span><span style="background-color:transparent;"> </span><span style="background-color:transparent;">show how to access </span><span style="background-color:transparent;">the examples files</span><span style="background-color:transparent;"> </span><span style="background-color:transparent;">online</span><span style="background-color:transparent;"> in the next step.</span>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">Open web browser. </div> | + | || '''Browser >> '''https://sourceforge.net/p/gnuplot/discussion/ |
| + | Point to the '''Register''' link at the top left. |
| + | || Here we can see previously asked questions and the corresponding replies. |
| | | |
| + | We can also post our questions and doubts after we register. |
| | | |
− | <div style="color:#000000;">Go to, '''gnuplot.sourceforge.net/demo'''</div>
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">I will open firefox web browser. </div>
| |
− |
| |
− |
| |
− | <div style="color:#000000;">Go to, web address '''gnuplot dot sourceforge dot net backslash demo'''</div>
| |
− | |-
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Notice the several demos and scripts for users to learn from.
| |
− | |-
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | 2D and 3D graphs, histograms and curve fitting are few capabilities software.
| |
− | |-
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | Click on '''Simple functions'''
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Click on the '''Simple functions''' link
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || '''Slide Number 9''' |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">Left side shows graphical plots. </div> | + | '''Summary''' |
| + | || Now let's summarize. |
| + | In this tutorial, we learned, |
| + | * About '''gnuplot terminal''' and the '''graphics''' interface |
| + | * About the '''demo''' folder of '''gnuplot''' |
| + | * About '''example script '''files and |
| + | * Loaded the script file to generate a graph |
| | | |
| | | |
− | <div style="color:#000000;">The simple scripts on right side, generate the plots. </div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" | | + | || '''Slide Number 10''' |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Scroll down the page and notice the various styles in plots on the left side.
| + | '''Assignment''' |
− | |-
| + | || For assignment activity, please do the following: |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| + | * Open some more '''example''' files of your choice in '''gnuplot'''. |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Notice the variations in symbols, color, legends, line style and filling area.
| + | * Observe the graphic output and the variations in plot styles. |
− | |-
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Learners may use this page to learn the various commands and options
| + | |
− | |-
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''Slide Number 6'''</div>
| + | |
− | | + | |
− | <div style="color:#000000;">'''Summary'''</div>
| + | |
− | | + | |
− | | + | |
− | <div style="color:#000000;"></div>
| + | |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | Now let's summarize. | + | |
− | | + | |
− | | + | |
− | In this tutorial, we
| + | |
− | | + | |
− | | + | |
− | * <div style="color:#000000;">Familiarized with gnuplot</div>
| + | |
− | * <div style="color:#000000;"><span style="background-color:transparent;">Familiarize</span><span style="background-color:transparent;">d</span><span style="background-color:transparent;"> with </span><span style="background-color:transparent;">examples files and</span><span style="background-color:transparent;"> demo </span><span style="background-color:transparent;">folder</span></div> | + | |
− | * <div style="color:#000000;"><span style="background-color:transparent;">Familiarize with </span><span style="background-color:transparent;">script</span><span style="background-color:transparent;"> files and graphics interface</span></div> | + | |
− | | + | |
| | | |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''Slide Number 7'''</div> | + | || '''Slide Number 11''' |
| + | '''Spoken Tutorial Project''' |
| + | || This video summarises the Spoken Tutorial Project |
| + | Please download and watch it. |
| | | |
− | <div style="color:#000000;">'''Assignment'''</div>
| |
− |
| |
− |
| |
− |
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | For assignment activity, please do the following
| |
− |
| |
− |
| |
− | * <div style="color:#000000;">Familiarize with more example files in gnuplot</div>
| |
− | * <div style="color:#000000;">Familiarize with many types of plots, that gnuplot can generate</div>
| |
− | * <div style="color:#000000;">Familiarize with help in user forum as seen in the link</div>
| |
− |
| |
− |
| |
− |
| |
− | <div style="color:#000000;">[http://gnuplot.10905.n7.nabble.com/Gnuplot-User-f3.html http://gnuplot.10905.n7.nabble.com/Gnuplot-User-f3.html]</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''Slide Number 8'''</div> | + | || '''Slide Number 12''' |
| + | '''Spoken Tutorial workshops''' |
| + | || The Spoken Tutorial Project Team conducts workshops and gives certificates. |
| + | For more details, please write to us. |
| | | |
− | <div style="color:#000000;">'''Spoken Tutorial Project'''</div>
| |
− |
| |
− |
| |
− |
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <span style="color:#000000;">This video summarises the</span><span style="color:#000000;"> Spoken Tutorial Project </span>
| |
− |
| |
− |
| |
− | <div style="color:#000000;">If you do not have good bandwidth, you may download and watch it.</div>
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''Slide Number 9'''</div> | + | || '''Slide Number 13''' |
| + | '''Forum for specific questions:''' |
| + | || Post your timed queries in the forum. |
| | | |
− | <div style="color:#000000;">'''Spoken Tutorial workshops'''</div>
| |
− |
| |
− |
| |
− |
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | The Spoken Tutorial Project Team * conducts workshops using spoken tutorials and
| |
− | * gives certificates on passing online tests.
| |
− |
| |
− |
| |
− |
| |
− | For more details, please write to us.
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''Slide Number 10'''</div> | + | || '''Slide Number 14''' |
| + | '''Acknowledgement''' |
| + | || Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India. |
| | | |
− | <div style="color:#000000;">'''Forum for specific questions:'''</div>
| |
− |
| |
− |
| |
− |
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | Post your timed queries in the forum.
| |
| |- | | |- |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;" | <div style="color:#000000;">'''Slide Number 11'''</div> | + | || |
| + | || This is Rani from IIT Bombay. Thank you for joining. |
| | | |
− | <span style="color:#000000;">'''Acknowledgemen'''</span><span style="color:#000000;">t</span>
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;" | <div style="color:#000000;">Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.</div>
| |
− |
| |
− |
| |
− |
| |
− | |-
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:none;padding:0.0382in;color:#000000;" |
| |
− | | style="background-color:#ffffff;border-top:none;border-bottom:1pt solid #000000;border-left:1pt solid #000000;border-right:1pt solid #000000;padding:0.0382in;color:#000000;" | This is Rani from IIT, Bombay. Thank you for joining.
| |
| |- | | |- |
| |} | | |} |
− | <div style="color:#000000;margin-left:0in;margin-right:0in;"></div>
| |
Visual Cue
|
Narration
|
Slide Number 1
Title Slide
|
Welcome to the tutorial on Example Scripts and Demo Folder.
|
Slide Number 2
Learning Objectives
|
In this tutorial, we will learn,
- About gnuplot terminal and the graphics interface
- About the demo folder of gnuplot
- About example script files and
- To load the script file to generate a graph
|
Slide Number 3
System and Software Requirement
|
To record this tutorial, I am using
- Debian Linux 9.3
- gnuplot 5.2.6
- gedit text editor 3.22
- Firefox web browser 52.5
and
- Working Internet connection to access online script files
|
Slide Number 4
Pre-requisites
|
To follow this tutorial,
learner must be familiar with high school level Mathematics.
|
Slide Number 5
Extract gnuplot-5.2.6 folder
|
At the time of installation, we downloaded and extracted the gnuplot folder.
Generally, the folder gnuplot-5.2.6 would be in the Downloads folder.
|
Slide Number 6
Extract gnuplot-5.2.6 folder
|
If you had saved it elsewhere, then use that location for the next steps.
|
Slide Number 7
Missing gnuplot folder
|
What should you do in case the gnuplot folder is missing on your machine?
You have to follow the steps explained in the prerequisite tutorials in this series.
|
Open file manager, go to Downloads, gnuplot-5.2.6 and demo folder
|
Open file manager.
In my machine, this icon is located on the menu bar at the bottom.
Click on the File Manager icon.
Navigate to Downloads, gnuplot-5.2.6 and then to demo folder.
|
Scroll/highlight
|
Notice the various files in the folder.
|
Press Ctrl+Alt+T keys
|
We will now open a terminal by pressing Ctrl, Alt and T keys simultaneously.
|
cd Downloads/gnuplot-5.2.6/demo
|
Type cd space Downloads slash gnuplot-5.2.6 slash demo and press Enter.
We are in the demo directory, which contains the example files.
|
Type ls and press enter
|
Type ls to list the files in the demo directory.
|
Hover mouse over the .dem extension files
|
Notice there are several files with dot dem extension.
|
Scroll up
|
They are simple text scripts, which are used to generate plots.
|
Ctrl+Shift+k on Debian (rdp)
"Ctrl+L" in Ubuntu
|
Let me clear the screen.
|
Cursor on the interface.
|
Now let's look at the structure of an example script using a text editor.
I will use gedit text editor. You can use any other editor of your choice.
|
Type gedit simple.dem and press enter
|
Type gedit space simple dot dem and press Enter.
Windows users may open the file in Notepad.
|
Cursor in the text editor.
|
The script file opens in the text editor window.
|
Hover mouse near required files in header.
Hover mouse next to the three functions in plot command.
|
Details about this plot are mentioned in the header.
The required data files are also mentioned.
This script plots three functions together.
|
Hover mouse next to left and right key in script
|
Scroll down to view the entire file.
This is the structure of a script file.
|
Close gedit
|
Now, close the text editor window.
|
Go to terminal.
|
Go to the terminal.
|
Cursor on the terminal
|
Next, let's run this script in gnuplot and generate the plot.
|
Type >gnuplot
Press enter
|
In the terminal, type gnuplot and press Enter.
|
Hover mouse near gnuplot prompt
|
The prompt changes to gnuplot prompt.
To execute a command in the terminal, press Enter after typing it.
I will not mention this separately.
|
Ctrl shift k on rdp machine
|
I will clear the terminal.
|
>load 'simple.dem'
|
To load the script, type load space within single quotes simple dot dem
|
Click on graphics window.
|
A graphical window opens.
Click on this graphics window to activate it.
|
Hover mouse next to sin(x), atan(x) and cos(atan(x))
|
Three functions, sin x, atan x and cos atan x are plotted.
|
Scroll further in axis limits
|
Using arrow keys, scroll, left, right, up and down within the plot.
Doing this allows us to scroll further in the axis limits.
|
Hover mouse next to “press enter to continue” and press enter
|
Simple dot dem can plot many graphs.
Go through the script file again, at this stage.
|
Go to terminal
|
To see the next plot, do the following.
- Go to the terminal by clicking on it.
- We can read a message Hit return to continue.
|
Hit return and click on Graphics window.
|
Press the Enter key to continue.
From now on, you have to do this every time to get the next plot.
|
Show the change in graphics window
|
Immediately, the next script and it's function gets plotted.
|
Press enter in terminal
|
Press Enter again, as shown in the prompt to plot the other functions from the script.
|
Show graphics window.
|
Likewise, you can scroll through some more example files in the demo directory.
|
Press Ctrl + C
|
Press Ctrl and C keys in the terminal, to come back to the gnuplot prompt.
|
Close graphical window
|
Now I will close this graphical window.
|
Cursor on the terminal.
|
Now, I will open a 3D plot example file next.
|
load ‘hidden2.dem’ and enter
|
Load the hidden2 dot dem file on the terminal.
Use the command as shown before to load the script file.
|
Show the graph
|
A graphics window opens.
|
Go terminal press enter, view graph , repeat for 3 graphs
|
Go through the 3 examples of the 3D plots this script can generate.
|
Close the graphics terminal.
|
Then close the graphics window.
|
Cursor on the terminal.
|
I encourage you to try other example files in this folder.
|
Press q
|
Type q to exit gnuplot.
|
Open web browser.
|
Many example scripts are available online for gnuplot, as well.
|
Open web browser.
|
I will show how to access the example files online in the next step.
I will open a web browser.
|
Go to, gnuplot.sourceforge.net/demo_5.2
|
In the web browser, go to the URL as shown here.
|
Scroll down and show
|
Notice that there are several examples available for users to learn from.
|
Hover mouse over the routines
|
2D and 3D graphs, histograms and curve fitting are few capabilities of the software.
|
Click on Simple functions
|
Under Basic 2D plot styles, click on the simple functions link.
|
Hover mouse over graph, pan right
|
The left side shows the graphical plots.
The simple scripts on the right side generate the plots.
|
Scroll down left pan.
|
Scroll down the page and notice the various styles seen in the plots on the left side.
|
Hover mouse over graph
|
Notice the variations in symbols, color, legends, line style and filling area.
|
Cursor on the page.
|
Learners may use this page to learn the various commands and options.
|
Slide Number 8
Help Forum
|
If we need help at any time, we can go to this URL
https://sourceforge.net/p/gnuplot/discussion/
|
Browser >> https://sourceforge.net/p/gnuplot/discussion/
Point to the Register link at the top left.
|
Here we can see previously asked questions and the corresponding replies.
We can also post our questions and doubts after we register.
|
Slide Number 9
Summary
|
Now let's summarize.
In this tutorial, we learned,
- About gnuplot terminal and the graphics interface
- About the demo folder of gnuplot
- About example script files and
- Loaded the script file to generate a graph
|
Slide Number 10
Assignment
|
For assignment activity, please do the following:
- Open some more example files of your choice in gnuplot.
- Observe the graphic output and the variations in plot styles.
|
Slide Number 11
Spoken Tutorial Project
|
This video summarises the Spoken Tutorial Project
Please download and watch it.
|
Slide Number 12
Spoken Tutorial workshops
|
The Spoken Tutorial Project Team conducts workshops and gives certificates.
For more details, please write to us.
|
Slide Number 13
Forum for specific questions:
|
Post your timed queries in the forum.
|
Slide Number 14
Acknowledgement
|
Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India.
|
|
This is Rani from IIT Bombay. Thank you for joining.
|