<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Python-3.4.3%2FC2%2FPlotting-Data%2FEnglish-timed</id>
		<title>Python-3.4.3/C2/Plotting-Data/English-timed - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=Python-3.4.3%2FC2%2FPlotting-Data%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Plotting-Data/English-timed&amp;action=history"/>
		<updated>2026-04-21T21:30:02Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Plotting-Data/English-timed&amp;diff=47619&amp;oldid=prev</id>
		<title>PoojaMoolya: Created page with &quot; {| border=1 | &lt;center&gt;'''Time'''&lt;/center&gt; | &lt;center&gt;'''Narration'''&lt;/center&gt;  |- |00:01 | Hello Friends. Welcome to the tutorial on &quot;'''Plotting data '''&quot;.   |- | 00:06 | In...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Plotting-Data/English-timed&amp;diff=47619&amp;oldid=prev"/>
				<updated>2019-05-30T06:51:53Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; {| border=1 | &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt; | &amp;lt;center&amp;gt;&amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;&amp;lt;/center&amp;gt;  |- |00:01 | Hello Friends. Welcome to the tutorial on &amp;quot;&amp;#039;&amp;#039;&amp;#039;Plotting data &amp;#039;&amp;#039;&amp;#039;&amp;quot;.   |- | 00:06 | In...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
{| border=1&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Time'''&amp;lt;/center&amp;gt;&lt;br /&gt;
| &amp;lt;center&amp;gt;'''Narration'''&amp;lt;/center&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|00:01&lt;br /&gt;
| Hello Friends. Welcome to the tutorial on &amp;quot;'''Plotting data '''&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:06&lt;br /&gt;
| In this tutorial, we will learn about&lt;br /&gt;
&lt;br /&gt;
Define a '''list''' of '''numbers'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:12&lt;br /&gt;
| Perform '''element-wise''' squaring of the list. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:16&lt;br /&gt;
|  '''Plot data points'''. &lt;br /&gt;
&lt;br /&gt;
and  '''Plot errorbars'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:21&lt;br /&gt;
| To record this tutorial, I am using &lt;br /&gt;
&lt;br /&gt;
'''Ubuntu Linux 14.04''' operating system&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:29&lt;br /&gt;
|  '''Python 3.4.3'''&lt;br /&gt;
&lt;br /&gt;
'''IPython 5.1.0'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:36&lt;br /&gt;
| To practise this tutorial, you should know how to &lt;br /&gt;
&lt;br /&gt;
run basic '''Python '''commands on the '''ipython console'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:44&lt;br /&gt;
| Use '''Plots''' interactively&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:47&lt;br /&gt;
|  Embellish a '''plot'''&lt;br /&gt;
. &lt;br /&gt;
If not, see the relevant '''Python '''tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  00:56&lt;br /&gt;
|  Let us first open the '''Terminal '''by pressing '''Ctrl+Alt+T '''keys simultaneously. &lt;br /&gt;
&lt;br /&gt;
Now, type '''ipython3''' and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:10&lt;br /&gt;
|  Let us initialise the '''pylab''' package.&lt;br /&gt;
&lt;br /&gt;
Type '''%pylab '''and press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|  01:20&lt;br /&gt;
|  Let us see an example for plotting the data related to a Simple Pendulum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:26&lt;br /&gt;
| For a '''simple pendulum L''' is '''directly proportional''' to the '''square''' of '''time T'''. &lt;br /&gt;
&lt;br /&gt;
We will be '''plotting L''' and '''T square values'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:38&lt;br /&gt;
|  Let us use the data shown here for plotting.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:43&lt;br /&gt;
| First let us initiate ''''l'''' and ''''t' values'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:48&lt;br /&gt;
| We initiate them as '''sequence''' of '''values'''. This is also called as '''List'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:56&lt;br /&gt;
| Type '''l '''''equal to ''within square brackets ''values ''and press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:06&lt;br /&gt;
| '''t '''''equal to ''within square brackets the ''values ''and press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:15&lt;br /&gt;
| Now we will obtain '''square''' of '''t '''by using '''function square'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:21&lt;br /&gt;
| Type '''tsquare=square '''within parentheses''' t '''and press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|02:33&lt;br /&gt;
| Now type '''tsquare''' and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|02:39&lt;br /&gt;
| We see the values of '''array tsquare'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|02:44&lt;br /&gt;
| Now to '''plot L versus T square''', we will simply type &lt;br /&gt;
&lt;br /&gt;
'''plot '''within parentheses''' l '''''comma '''''tsquare '''''comma'' within single quotes '''dot '''and press''' Enter '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:01&lt;br /&gt;
| We see the required plot.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:05&lt;br /&gt;
| You can also specify ''''o'''' for '''filled circles'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:10&lt;br /&gt;
| For this let us clear the '''plot''' first. &lt;br /&gt;
&lt;br /&gt;
Type '''clf parentheses Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:20&lt;br /&gt;
| So the plot is clear now.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:24&lt;br /&gt;
| Now type,&lt;br /&gt;
&lt;br /&gt;
'''plot '''within parentheses''' l '''''comma '''''tsquare '''''comma'' within single quotes '''o '''and press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:36&lt;br /&gt;
| We see the plot with filled circles.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:40&lt;br /&gt;
| Pause the video. Try this exercise and then resume the video.&lt;br /&gt;
&lt;br /&gt;
'''Plot''' the given '''experimental data''' with '''large dots'''. The '''data''' is on your screen. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:55&lt;br /&gt;
| Use the error data given here for plotting.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:59&lt;br /&gt;
| We shall again '''initialize''' the '''sequence values''' in the same manner as we did for '''l''' and '''t'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:07&lt;br /&gt;
| So, type '''delta underscore l  equal to''' within square bracket the ''values ''and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:20&lt;br /&gt;
| '''delta underscore t '''within square bracket the '' values ''and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:29&lt;br /&gt;
| Now to plot '''L''' versus '''T''' square with an '''error bar,''' we use the '''function''' '''errorbar()'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:37&lt;br /&gt;
| So type, '''errorbar''' within parentheses '''l '''''comma '''''tsquare '''''comma '''''xerr '''''equalto '''''delta underscore l '''''comma '''''y underscore err '''''equalto '''''delta underscore t '''''comma '''''fmt '''equal to within single quotes '''bo '''&lt;br /&gt;
&lt;br /&gt;
and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:08&lt;br /&gt;
| We see the plot '''L''' versus '''T square''' with an '''error bar.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|05:14&lt;br /&gt;
| You can explore other options of '''errorbar''' using the '''documentation''' of '''errorbar'''. &lt;br /&gt;
&lt;br /&gt;
That is, '''errorbar ''question mark'''''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:27&lt;br /&gt;
| Pause the video. Try this exercise and then resume the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:33&lt;br /&gt;
| &lt;br /&gt;
'''Plot''' the given '''experimental data '''with '''small dots'''. &lt;br /&gt;
&lt;br /&gt;
Also include the '''error''' in your '''plot'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:42&lt;br /&gt;
| Use the data given here for plotting.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:47&lt;br /&gt;
| This brings us to the end of this '''tutorial'''. In this '''tutorial''', we have learned to, &lt;br /&gt;
&lt;br /&gt;
Declare a '''list''' of '''numbers''' using the '''function''' '''array'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:59&lt;br /&gt;
|  Perform '''element-wise''' '''squaring''' using the '''square''' '''function'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:04&lt;br /&gt;
|  Use  various '''options''' available for '''plotting''' like '''dots''',''' lines''' etc. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:11&lt;br /&gt;
|  '''Plot experimental data''' such that we can also represent '''error''' by using the '''errorbar() function'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:20&lt;br /&gt;
| Here are some self assessment questions for you to solve. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:25&lt;br /&gt;
|  '''Square''' the following '''sequence''' distance underscore values ''equal to within square brackets'' '''2.1 comma 4.6 comma 8.72 comma 9.03''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:39&lt;br /&gt;
| Plot L versus T in '''red pluses'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:44&lt;br /&gt;
| And the answers, &lt;br /&gt;
&lt;br /&gt;
To square a sequence of values, we use the '''function square'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:51&lt;br /&gt;
| So '''square''' ''within parentheses'' '''distance underscore''' ''values''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:57&lt;br /&gt;
| Answer to the second question&lt;br /&gt;
&lt;br /&gt;
We pass an additional '''argument''' stating the desired parameter &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:04&lt;br /&gt;
| So '''plot''' within parentheses '''L''' ''comma'' '''T''' ''comma'' within single quotes '''r''' ''plus'' for red '''pluses'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:16&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:21&lt;br /&gt;
| Please post your general queries on Python in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:27&lt;br /&gt;
| FOSSEE team coordinates the TBC project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:31&lt;br /&gt;
| Spoken-tutorial is funded by NMEICT, MHRD, Govt. of India. &lt;br /&gt;
&lt;br /&gt;
For more details, visit this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|07:42&lt;br /&gt;
| This is  from IIT Bombay signing off.&lt;br /&gt;
&lt;br /&gt;
Thank You&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	</feed>