<?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%2FSubplots%2FEnglish-timed</id>
		<title>Python-3.4.3/C2/Subplots/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%2FSubplots%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Subplots/English-timed&amp;action=history"/>
		<updated>2026-05-13T11:57:58Z</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/Subplots/English-timed&amp;diff=47780&amp;oldid=prev</id>
		<title>Sandhya.np14 at 16:07, 12 June 2019</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Subplots/English-timed&amp;diff=47780&amp;oldid=prev"/>
				<updated>2019-06-12T16:07:33Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Subplots/English-timed&amp;amp;diff=47780&amp;amp;oldid=47616&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Sandhya.np14</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Subplots/English-timed&amp;diff=47616&amp;oldid=prev</id>
		<title>Pratik kamble: Created page with &quot;{| border=1 | '''Time''' |'''Narration'''  |- |00:01 |Hello Friends. Welcome to the spoken tutorial on '''Subplots'''.   |- | 00:06 | At the end of this tutorial, you will be...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Subplots/English-timed&amp;diff=47616&amp;oldid=prev"/>
				<updated>2019-05-30T06:13:17Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| border=1 | &amp;#039;&amp;#039;&amp;#039;Time&amp;#039;&amp;#039;&amp;#039; |&amp;#039;&amp;#039;&amp;#039;Narration&amp;#039;&amp;#039;&amp;#039;  |- |00:01 |Hello Friends. Welcome to the spoken tutorial on &amp;#039;&amp;#039;&amp;#039;Subplots&amp;#039;&amp;#039;&amp;#039;.   |- | 00:06 | At the end of this tutorial, you will be...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| border=1&lt;br /&gt;
| '''Time'''&lt;br /&gt;
|'''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|00:01&lt;br /&gt;
|Hello Friends. Welcome to the spoken tutorial on '''Subplots'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:06&lt;br /&gt;
| At the end of this tutorial, you will be able to create and switch between '''subplots'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:14&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;
'''Python 3.4.3'''&lt;br /&gt;
&lt;br /&gt;
'''IPython 5.1.0'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:29&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;
Use '''Plots''' interactively&lt;br /&gt;
&lt;br /&gt;
Embellish a '''plot'''&lt;br /&gt;
&lt;br /&gt;
If not, see the pre-requisite '''Python '''tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:48&lt;br /&gt;
|Let us first open the '''Terminal '''by pressing '''Ctrl+Alt+T '''keys simultaneously. &lt;br /&gt;
Now, type '''ipython3''' and press '''Enter'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|01:01&lt;br /&gt;
|Let us initialise the '''pylab package'''. Type '''percentage pylab '''and press''' Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:10&lt;br /&gt;
| To compare two '''plots''' we draw the '''plots''' in the same '''plotting area.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:15&lt;br /&gt;
| Let us now create two '''plots'''- a '''cosine plot''' and an '''exponential curve''' in the same '''plotting area'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:24&lt;br /&gt;
| Type&lt;br /&gt;
&lt;br /&gt;
'''x equals to linspace''' inside '''brackets 0 comma 50 comma 500 '''and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
'''plot''' inside '''brackets x comma cos(x)'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:45&lt;br /&gt;
| Type&lt;br /&gt;
&lt;br /&gt;
'''y equals to linspace''' inside '''brackets 0 comma 5 comma 100.'''&lt;br /&gt;
'''plot''' inside '''brackets y comma y square.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:04&lt;br /&gt;
| Here the two '''plots''' have different regular '''axes.''' So we cannot draw '''overlaid plots. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:13&lt;br /&gt;
| In such cases we can draw '''subplots'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:17&lt;br /&gt;
| We use '''subplot command''' to accomplish this.&lt;br /&gt;
&lt;br /&gt;
Type&lt;br /&gt;
&lt;br /&gt;
'''clf()'''&lt;br /&gt;
&lt;br /&gt;
'''subplot''' inside the '''brackets 2 comma 1 comma 1'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|02:33&lt;br /&gt;
| We can see the first '''subplot. The '''subplot command''' takes three '''arguments.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:40&lt;br /&gt;
|The first '''argument''' is the number of '''rows''' of '''subplots''' that must be created.&lt;br /&gt;
&lt;br /&gt;
Here the first '''argument''' is 2, to split the '''plot horizontally'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:53&lt;br /&gt;
|The second '''argument''' is the number of '''columns''' of '''subplots''' that must be created. &lt;br /&gt;
Here the second '''argument '''is 1.  So '''plot''' will not split '''vertically.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:07&lt;br /&gt;
|The last '''argument''' specifies the '''serial number '''for the''' subplot'''. &lt;br /&gt;
Here we passed 1 as the '''argument''', which creates the '''upper subplot''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:19&lt;br /&gt;
| If we execute the '''subplot command''' as &lt;br /&gt;
&lt;br /&gt;
'''subplot''' inside the '''brackets 2 comma 1 comma 2''' the '''lower subplot''' is created. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:34&lt;br /&gt;
| Here, we can see two '''subplots'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:38&lt;br /&gt;
| Now we can draw '''plots''' in each of the '''subplot area''' using the '''plot command'''. &lt;br /&gt;
&lt;br /&gt;
Type&lt;br /&gt;
&lt;br /&gt;
'''subplot''' inside '''brackets 2 comma 1 comma 1'''&lt;br /&gt;
&lt;br /&gt;
'''plot''' inside '''brackets x comma cos(x)'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:00&lt;br /&gt;
| Now type&lt;br /&gt;
&lt;br /&gt;
'''subplot''' inside '''brackets 2 comma 1 comma 2 '''&lt;br /&gt;
&lt;br /&gt;
'''plot y comma y square'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|04:16&lt;br /&gt;
| This created two '''plots''' one in each of the''' subplot''' area. The top '''subplot''' holds a '''cosine curve''' And the bottom '''subplot''' holds a '''parabola'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:29&lt;br /&gt;
|It is clear from the two '''subplots''' that both have different '''regular axes'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:35&lt;br /&gt;
|For the '''cosine curve, x-axis''' varies from 0 to 50 and '''y-axis''' varies from '''minus '''1 to 1.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:46&lt;br /&gt;
|For the '''parabolic curve, x-axis''' varies from 0 to 5 and '''y-axis''' varies from 0 to 25.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:57&lt;br /&gt;
| Now clear the plot window&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:00&lt;br /&gt;
| Pause the video. Try this exercise and then resume the video &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:05&lt;br /&gt;
| '''Pressure, Volume '''and''' Temperatures '''are held by the '''equation Pv equals to nRT''' where '''nR''' is a '''constant'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:16&lt;br /&gt;
|  Assume '''nR equals to 0.01 Joules per Kelvin''' and '''T equals to 200K'''. '''V''' can be in the '''range''' from '''21cc to 100cc'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:29&lt;br /&gt;
| Draw two different''' plots '''as''' subplots''':&lt;br /&gt;
&lt;br /&gt;
'''Pressure v/s Volume plot '''and&lt;br /&gt;
&lt;br /&gt;
'''Pressure v/s Temperature plot'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|05:39&lt;br /&gt;
| Switch to the '''terminal''' for the solution. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:43&lt;br /&gt;
| To start with, we have been given the '''range''' of '''Volume''' from which we can define the variable '''v.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:51&lt;br /&gt;
| '''v equals to linspace''' inside '''brackets 21 comma 100 comma 500'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:03&lt;br /&gt;
| We can create first '''subplot''' and draw '''Pressure''' v/s '''Volume''' '''graph '''using this '''v'''. &lt;br /&gt;
&lt;br /&gt;
'''subplot(2 comma 1 comma 1) '''&lt;br /&gt;
&lt;br /&gt;
'''plot(v comma 2 point 0 by v)'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:24&lt;br /&gt;
| We know that '''nRT''' is a '''constant''' which is equal to 2.0 &lt;br /&gt;
&lt;br /&gt;
since '''nR''' = equals to 0.01 '''Joules per Kelvin'''  and '''T''' equals to 200 '''Kelvin '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:38&lt;br /&gt;
| Now we can create the second '''subplot''' and draw the '''Pressure''' v/s '''Temperature plot''' as follows &lt;br /&gt;
&lt;br /&gt;
'''subplot(2 comma 1 comma 2)'''&lt;br /&gt;
&lt;br /&gt;
'''plot(200 comma 2 point 0 divided by v)'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:02&lt;br /&gt;
| We have an error now, telling '''x''' and '''y dimensions''' don't match. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:08&lt;br /&gt;
| So we will create same number of '''points''' for '''temperature.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:14&lt;br /&gt;
| Type &lt;br /&gt;
&lt;br /&gt;
'''t equals to linspace''' inside '''brackets 200 comma 200 comma 500. '''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:27&lt;br /&gt;
| Now, we have 500 values in '''t '''and each with the value 200 '''Kelvin'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:35&lt;br /&gt;
| '''Plotting''' this data, we get the required '''plot. '''&lt;br /&gt;
&lt;br /&gt;
'''plot''' inside '''brackets t comma 2 point 0 divided by v''' &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:48&lt;br /&gt;
| We can see two '''subplots''' of '''Pressure v/s Volume''' and '''Pressure v/s Temperature''' respectively. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:56&lt;br /&gt;
| This brings us to the end of this tutorial. &lt;br /&gt;
&lt;br /&gt;
In this tutorial, we have learnt to create '''subplots '''and to '''switch''' between them. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:08&lt;br /&gt;
| Here are some self assessment questions for you to solve.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:12&lt;br /&gt;
|1.Which of the following is correct?&lt;br /&gt;
&lt;br /&gt;
'''subplot''' inside '''brackets numRows comma numCols, plotNum '''&lt;br /&gt;
&lt;br /&gt;
'''subplot''' inside '''brackets numRows comma numCols '''&lt;br /&gt;
&lt;br /&gt;
'''subplot''' inside '''brackets numCols comma numRows'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:36&lt;br /&gt;
| And the answer is first option.&lt;br /&gt;
&lt;br /&gt;
1.The''' subplot command''' takes three '''arguments''' namely the number of '''rows''', number of '''columns''' and the '''plot number'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:48&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:53&lt;br /&gt;
| Please post your general queries on Python in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 08:59&lt;br /&gt;
|The FOSSEE team coordinates the TBC project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:04&lt;br /&gt;
| Spoken-tutorial is funded by NMEICT, MHRD, Govt. of India.For more details, visit this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 09:15&lt;br /&gt;
| This is Usha from IIT Bombay signing off. Thank You.&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pratik kamble</name></author>	</entry>

	</feed>