Grace/C2/Installation-and-Introduction-to-Grace/English

From Script | Spoken-Tutorial
Jump to: navigation, search
Visual Cue Narration
Slide Number 1

Title Slide

Welcome to the tutorial on Installation and Introduction to Grace.
Slide Number 2

Learning Objectives

In this tutorial, we will learn to,
  • Install Grace 5.1.25 in Ubuntu Linux 16.04
  • Open Grace interface
  • Resize the graph area
  • Open an XY dataset file

and

  • Make a straight line graph
Slide Number 3

System and Software Requirement

To record this tutorial, I am using
  • Ubuntu Linux OS version 16.04
  • Grace version 5.1.25

and

  • A working internet connection to download Grace.
Slide Number 4

Pre-requisites

To follow this tutorial,

Learners should be familiar with basic computer and Internet skills.

Slide Number 5

Resource link

Let us now install Grace program in Ubuntu Linux OS 16.04.

This is the official website of Grace.

Cursor on Ubuntu Linux Interface. First I will demonstrate to install Grace using the Terminal.
Cursor on Ubuntu Linux interface.

Show the Ubuntu Desktop.

Internet connectivity is required to install the software.
Press the windows key on keyboard Press the windows key on keyboard.
Type terminal in search box.

Press Enter.

Type terminal in the search box that appears and press Enter.
Point to theTerminal. A terminal window opens.
Type sudo apt-get update >> pressEnter At the prompt, type sudo space apt hyphen get space update and press Enter.
Enter sudo password >> press Enter.

Point to installing packages.

If prompted for sudo password, type the password and press Enter.

This step updates the available packages from the Internet sources.

This process takes a few seconds to complete.

Ctrl-L Clear the terminal.
Type sudo apt-get install grace >> press Enter. Next, type sudo space apt-get space install space grace.

Press Enter.

If prompted, enter y

Point to the installation process steps.

This process takes sometime to complete and installs Grace in your computer.
Cursor on the Terminal window. The process may exit without installing grace with lock error.

Then, see the installation sheet for further help.

Ctrl-L Clear the terminal.
At the prompt, type xmgrace >> press Enter.

Point to the Grace window.

To open Grace using the Terminal,

at prompt type xmgrace and press Enter.

Grace window opens.

Click on the X button to close the window. Click on the X button on the top-left corner to close the window.
Cursor on the Ubuntu Linux interface.

Press the windows key on keyboard.

Now I will show how to open Grace using Search your computer option.

Press the windows key on the keyboard.

Type grace in the search box >> Press Enter. In the search box, that appears, type grace and press Enter.

This will open the Grace program.

Point to the graph panel.

Cursor on the graph.

Grace opens with an empty graph panel.

First, we will learn how to resize the graph panel.

Point to the solid squares at the corners.

Drag the scroll bar.

Show bottom right corner or graph panel.

There are four small solid squares at the corners of the graph panel.

Using the scroll bars, go to the bottom right corner of the graph.

Hover mouse over corner. Double click on the small black square on the bottom right corner.

You may choose any of the corner squares to resize.

Double click and observe. Now the graph can be resized.

The border lines may or may not be visible now.

Click and drag the cursor to top left. To resize drag and place the cursor at the desired position.
Left click to fix the plot size. Now left click, to fix the size of the graph panel.
Adjust scroll bar to see full graph panel. I will also adjust the scroll bars to see the full graph panel.
Cursor on the Interface. Now I will show how to plot a graph.
Slide Number 6

Download File to Practise

To plot the graph, download the line.txt file.

The file is provided in the code files link of this tutorial.

Extract the file and save it on the Desktop.

Go to Desktop and show the file. I have already downloaded and saved it on the Desktop.
Double click to open the file.

Point to the # line. Hover mouse over header.

Double click to open the file in a text editor.

First row starts with a hash and is a comment line.

This is a data header.

Hover mouse over the columns.

Point to the columns.

Notice the two column data format.

First column is x data and second column is y data.

In this data file values are tab separated.

Close the file. Close the file and go back to Grace window.

Next, we will load the data on Grace interface to plot a graph.

Hover mouse over limits.

Cursor on the interface.

Notice that, the axis limits are from zero to one for both axes.

Next, let’s load the data file to make an XY plot.

Click on Data tab > Import > ASCII Click on Data tab, Import and select ASCII format.

A Grace: Read sets dialog box opens.

Change filter to .txt >> Press Enter.

Point to the * .txt files.

In the Filter input box change *.dat to *.txt and press Enter.

This will show the list of directories and files containing txt extension.

Change directory to Desktop. From Directories option, select Desktop folder.
Select line.txt file Select the file line.txt.
Select load set to single set We will keep Load as Single Set .
Select Set Type as XY Select Set Type as XY.
Point to Data Source as Disk By default, Data Source is set to Disk.
Select Auto Scale on read for XY By default, Auto Scale on read is set to XY.

The range of X and Y axes automatically adjusts to lower and higher values of data.

Click on the Ok button. Click on the Ok button to load the data.
Click Cancel to close the Window. Click on Cancel to close the dialog box.
Point at plot area to show straight line We can see a graph representing the data.
Hover mouse to limits of x-y axes. X and Y limits on the graph have changed from 0 to 10.
Click on File >> Save.

Point to the dialog box.

Let us save the file.

Click on File and select Save.

Grace:Save project dialog box opens.

Point to *.agr extension. Dot agr is the preferred extension for grace plot.
Change directory, to Desktop.

Type file name line.agr.

I will choose Desktop to save the file.

In the Selection text box, type file name as line dot agr.

Click OK button. Click on the OK button to save the project.
Click on File exit. To exit Grace, click on File, Exit or press control q on keyboard.
Let us summarize.
Slide Number 7

Summary

In this tutorial, we have,
  • Installed Grace 5.1.25 in Ubuntu Linux 16.04
  • Opened Grace interface
  • Resized the graph area
  • Read an ASCII data set XY and plotted a graph
Slide Number 8

Assignment

For assignment, please do the following.

Plot a graph in Grace using the file, assignment.txt provided with this tutorial.

Slide Number 9

Acknowledgement

The video at the following link summarizes the spoken tutorial project.

Please download and watch it.

Slide Number 10

Spoken Tutorial workshops

The Spoken Tutorial Project team:
  • conducts workshops and
  • gives certificates on passing online tests.

Please write to us.

Slide Number 11

Forum for specific questions:

Do you have questions in THIS Spoken Tutorial?
  • Please visit this site
  • Choose the minute and second where you have the question
  • Explain your question briefly
  • Someone from our team will answer them.
Slide Number 12

Forum for specific questions:

The Spoken Tutorial forum is for specific questions on this tutorial

Please do not post unrelated and general questions on them

This will help reduce the clutter

With less clutter, we can use this discussion as instructional material.

Slide Number 13

Acknowledgement

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

More information on this mission is available at this link.

This tutorial is contributed by Rani

Thank you for joining.

Contributors and Content Editors

Madhurig, PoojaMoolya, Ranipv076