<?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-Charts%2FEnglish-timed</id>
		<title>Python-3.4.3/C2/Plotting-Charts/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-Charts%2FEnglish-timed"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Plotting-Charts/English-timed&amp;action=history"/>
		<updated>2026-05-04T16:59:39Z</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-Charts/English-timed&amp;diff=47795&amp;oldid=prev</id>
		<title>PoojaMoolya at 09:57, 13 June 2019</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Plotting-Charts/English-timed&amp;diff=47795&amp;oldid=prev"/>
				<updated>2019-06-13T09:57:45Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 09:57, 13 June 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 245:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 245:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| 06:45&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| 06:45&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| And the answer is,&amp;#160; '''bar x ''comma'' y ''comma'' fill '' is equal to'' False ''comma'' hatch ''is equal to'' a vertical line&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;)&lt;/del&gt;''' is the correct option to generate a '''bar''' '''chart''' with vertical '''line''' '''hatching'''.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;| And the answer is,&amp;#160; '''bar x ''comma'' y ''comma'' fill '' is equal to'' False ''comma'' hatch ''is equal to'' a vertical line''' is the correct option to generate a '''bar''' '''chart''' with vertical '''line''' '''hatching'''.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>PoojaMoolya</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Plotting-Charts/English-timed&amp;diff=47627&amp;oldid=prev</id>
		<title>PoojaMoolya: Created page with &quot; {| border=1 | '''Time''' | '''Narration'''  |- | 00:01 | Hello friends. Welcome to the tutorial on '''plotting charts'''   |- | 00:06 | At the end of this tutorial, you will...&quot;</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=Python-3.4.3/C2/Plotting-Charts/English-timed&amp;diff=47627&amp;oldid=prev"/>
				<updated>2019-05-30T09:04:48Z</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 tutorial on &amp;#039;&amp;#039;&amp;#039;plotting charts&amp;#039;&amp;#039;&amp;#039;   |- | 00:06 | At the end of this tutorial, you will...&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;
| '''Time'''&lt;br /&gt;
| '''Narration'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:01&lt;br /&gt;
| Hello friends. Welcome to the tutorial on '''plotting charts''' &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 &lt;br /&gt;
Create '''pie charts'''&lt;br /&gt;
&lt;br /&gt;
Create '''bar charts '''and&lt;br /&gt;
&lt;br /&gt;
Find more information on '''matplotlib'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:18&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:24&lt;br /&gt;
|  '''Python 3.4.3''' and '''IPython 5.1.0'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:31&lt;br /&gt;
| To practice 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:39&lt;br /&gt;
|  '''Load data '''from''' '''files''' '''and '''Plot data'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:42&lt;br /&gt;
| If not, see the relevant Python tutorials on this website.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 00:47&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;
| 00:58&lt;br /&gt;
| Let us initialize the '''pylab''' package.&lt;br /&gt;
&lt;br /&gt;
Type '''%pylab '''and press''' Enter.'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:06&lt;br /&gt;
| A '''pie''' '''chart''' is a circular chart divided into sectors, to illustrate numerical proportion&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:12&lt;br /&gt;
| The syntax for pie() function is as follows: '''pie ''inside parentheses'' values ''comma'' labels ''equal to'' labels'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:22&lt;br /&gt;
|  Where '''values are '''the data to be plotted and '''labels''' – the label for each wedge in the pie chart&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:30&lt;br /&gt;
| Plot a '''pie''' '''chart''' representing the profit percentage of company A. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:35&lt;br /&gt;
| Use the data from file '''company-a-data.txt''' available in the code file link of this tutorial&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|01:43&lt;br /&gt;
| The data file has two columns with a set of values in each column.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:48&lt;br /&gt;
| The first column represents years. The second column represents the profit percentages.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 01:55&lt;br /&gt;
| To produce a scatter plot, we first need to load the data from the file using '''loadtxt''' command. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:03&lt;br /&gt;
| Let us clear the '''terminal'''.&lt;br /&gt;
&lt;br /&gt;
Type '''year ''comma'' profit ''equal to'' loadtxt ''inside parentheses inside single quotes'' add the path of the file company-a-data.txt ''comma'' unpack ''equal to'' True''' and press '''Enter'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:28&lt;br /&gt;
| '''unpack ''equal to'' True --&amp;gt; returns''' the '''transposed array '''of '''data'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:33&lt;br /&gt;
| Type '''clf ''open and close parentheses'' '''to clear the plot window, if any plots executed previously.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:41&lt;br /&gt;
| Type '''pie(profit ''comma'' labels equal to year)''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:50&lt;br /&gt;
| Notice that we passed two arguments to the function '''pie()'''. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:55&lt;br /&gt;
| First one being the '''values,''' which is '''profit''' in our case.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 02:59&lt;br /&gt;
| The next one being the set of '''labels''' to be used in the '''pie chart''', which is '''year''' in our case.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:05&lt;br /&gt;
| Pause the video here.&lt;br /&gt;
&lt;br /&gt;
Try out the following exercise and resume the video.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:11&lt;br /&gt;
| Plot a '''pie''' '''chart''' with the same data with the following colors for each wedges.&lt;br /&gt;
&lt;br /&gt;
'''white, red, black, magenta,'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:19&lt;br /&gt;
|  '''yellow, blue, green, cyan,'''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:21&lt;br /&gt;
|'''yellow, magenta '''and''' blue'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:24&lt;br /&gt;
| Hint: In your '''ipython interpreter, '''try typing '''pie question mark'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
|03:29&lt;br /&gt;
| Solution to Exercise 2&lt;br /&gt;
&lt;br /&gt;
Clear the '''plot window '''by typing '''clf open and close parentheses''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:39&lt;br /&gt;
| Type '''pie inside parentheses profit comma labels equal to year comma colors equal to inside parentheses the color codes ''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 03:57&lt;br /&gt;
| This will display a pie chart with each wedge having the color as specified in the parameters.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:04&lt;br /&gt;
| A '''bar chart''' is a '''chart''' with rectangular bars &lt;br /&gt;
&lt;br /&gt;
with lengths proportional to the values that they represent.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:12&lt;br /&gt;
| The syntax for bar chart is: '''bar ''inside parentheses'' x ''comma'' y'''&lt;br /&gt;
&lt;br /&gt;
where '''x ''' a sequence of data and '''y ''' a sequence of data, the same length of x&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:28&lt;br /&gt;
| Plot a '''bar chart''' representing the profit percentage of company A. &lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:33&lt;br /&gt;
| Use the data from file '''company-a-data.txt'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:38&lt;br /&gt;
| Solution to Exercise 3&lt;br /&gt;
&lt;br /&gt;
Clear the '''plot window '''by typing '''clf ''open and close parentheses'''''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:47&lt;br /&gt;
| Type '''bar ''open and close parentheses'' year ''comma'' profit''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 04:56&lt;br /&gt;
| This will display a bar chart representing the profit percentage of company A&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:02&lt;br /&gt;
| Plot a '''bar chart '''as shown in the image:&lt;br /&gt;
&lt;br /&gt;
'''Hint''': Bar chart is not filled and which is '''hatched''' with 45&amp;lt;sup&amp;gt;o&amp;lt;/sup&amp;gt; slanting lines.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:13&lt;br /&gt;
| The data for the chart may be obtained from the file '''company-a-data.txt'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:19&lt;br /&gt;
| Hint: In your '''ipython interpreter, '''try typing '''bar ''question mark'''''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:25&lt;br /&gt;
| Solution to Exercise 4&lt;br /&gt;
&lt;br /&gt;
Clear the '''plot window '''by typing '''clf ''open and close parentheses'''''&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:33&lt;br /&gt;
| Type '''bar ''open and close parentheses'' year ''comma'' profit ''comma'' fill ''equal to'' False ''comma'' hatch ''equal to inside single quotes'' ''slanting line''''' and press '''Enter'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 05:54&lt;br /&gt;
| This will display a bar chart which is not filled and which is '''hatched''' with 45&amp;lt;sup&amp;gt;o&amp;lt;/sup&amp;gt; slanting lines&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:02&lt;br /&gt;
| Help about '''matplotlib''' can be obtained from '''matplotlib.sourceforge.net/contents.html'''&lt;br /&gt;
&lt;br /&gt;
More plots can be seen at the following links&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:18&lt;br /&gt;
| This brings us to the end of this tutorial.&lt;br /&gt;
&lt;br /&gt;
In this tutorial we learnt to, Plot a '''pie''' '''chart''' using '''pie()''' function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:28&lt;br /&gt;
|  Plot a '''bar''' '''chart''' using '''bar()''' function&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:31&lt;br /&gt;
|  And Access the '''matplotlib '''online help&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:34&lt;br /&gt;
| Here are some self assessment questions for you to solve.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:38&lt;br /&gt;
| What statement can be issued to generate a bar chart with vertical line hatching?&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 06:45&lt;br /&gt;
| And the answer is,  '''bar x ''comma'' y ''comma'' fill '' is equal to'' False ''comma'' hatch ''is equal to'' a vertical line)''' is the correct option to generate a '''bar''' '''chart''' with vertical '''line''' '''hatching'''.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:00&lt;br /&gt;
| Please post your timed queries in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:04&lt;br /&gt;
| Please post your general queries on Python in this forum.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:09&lt;br /&gt;
| FOSSEE team coordinates the TBC project.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| 07:13&lt;br /&gt;
| Spoken Tutorial Project 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:23&lt;br /&gt;
| This is Trupti Kini from FOSSEE 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>