<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Ask Ghassem - Recent questions tagged plots</title>
<link>https://ask.ghassem.com/tag/plots</link>
<description>Powered by Question2Answer</description>
<item>
<title>ploting the xticks to be datatime</title>
<link>https://ask.ghassem.com/432/ploting-the-xticks-to-be-datatime</link>
<description>&lt;p&gt;I have a dataframe&amp;nbsp;like below&lt;/p&gt;

&lt;pre class=&quot;prettyprint lang-python&quot; data-pbcklang=&quot;python&quot; data-pbcktabsize=&quot;4&quot;&gt;
                    MT_001	    MT_002	    hour
2012-01-01 00:15:00	3.807107	22.759602	00:15:00
2012-01-01 00:30:00	5.076142	22.759602	00:30:00
2012-01-01 00:45:00	3.807107	22.759602	00:45:00
2012-01-01 01:00:00	3.807107	22.759602	01:00:00
2012-01-01 01:15:00	5.076142	22.048364	01:15:00&lt;/pre&gt;

&lt;p&gt;I can easily plot it using&lt;/p&gt;

&lt;pre class=&quot;prettyprint lang-python&quot; data-pbcklang=&quot;python&quot; data-pbcktabsize=&quot;4&quot;&gt;
data.plot()
plt.show()&lt;/pre&gt;

&lt;p&gt;However, this doesn&#039;t show the xlabel. What if i want to see the graph where the xlabel&amp;nbsp;shows the ticks&amp;nbsp;with 4 hours apart?&lt;/p&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/432/ploting-the-xticks-to-be-datatime</guid>
<pubDate>Sat, 20 Oct 2018 00:47:40 +0000</pubDate>
</item>
<item>
<title>plotting categorical radio</title>
<link>https://ask.ghassem.com/414/plotting-categorical-radio</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I am trying to gain insight of the data but having hard time plotting it.&lt;/p&gt;

&lt;p&gt;Suppose I have a data frame like below&lt;/p&gt;

&lt;table border=&quot;1&quot; cellpadding=&quot;1&quot; style=&quot;width:500px&quot;&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th scope=&quot;col&quot;&gt;ID&lt;/th&gt;
			&lt;th scope=&quot;col&quot;&gt;Feature 1&lt;/th&gt;
			&lt;th scope=&quot;col&quot;&gt;Class&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;1&lt;/td&gt;
			&lt;td&gt;a&lt;/td&gt;
			&lt;td&gt;good&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;2&lt;/td&gt;
			&lt;td&gt;a&lt;/td&gt;
			&lt;td&gt;good&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;3&lt;/td&gt;
			&lt;td&gt;b&lt;/td&gt;
			&lt;td&gt;good&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;4&lt;/td&gt;
			&lt;td&gt;b&lt;/td&gt;
			&lt;td&gt;bad&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;5&lt;/td&gt;
			&lt;td&gt;a&lt;/td&gt;
			&lt;td&gt;bad&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;6&lt;/td&gt;
			&lt;td&gt;a&lt;/td&gt;
			&lt;td&gt;bad&lt;/td&gt;
		&lt;/tr&gt;
		&lt;tr&gt;
			&lt;td&gt;7&lt;/td&gt;
			&lt;td&gt;b&lt;/td&gt;
			&lt;td&gt;bad&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;

&lt;p&gt;In the above dataframe&amp;nbsp;I have one feature &quot;a&quot; and &quot;b&quot; each has a good and bad class value.&lt;/p&gt;

&lt;p&gt;for e.g&lt;/p&gt;

&lt;p&gt;feature &quot;a&quot; has 2 good and 2 bad classes&amp;nbsp;&lt;/p&gt;

&lt;p&gt;feature &quot;b&quot; has 1 good and 2 bad classes&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;How do i visualize this and plot it in python ?&lt;/li&gt;
	&lt;li&gt;How would I do it for more than one features in different subplots?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Sorry if this question seems like a very basic question to ask&amp;nbsp;&lt;/p&gt;</description>
<category>Python</category>
<guid isPermaLink="true">https://ask.ghassem.com/414/plotting-categorical-radio</guid>
<pubDate>Wed, 17 Oct 2018 02:25:36 +0000</pubDate>
</item>
<item>
<title>What is the difference between a bar plot and a histogram?</title>
<link>https://ask.ghassem.com/222/what-is-the-difference-between-a-bar-plot-and-a-histogram</link>
<description></description>
<category>general</category>
<guid isPermaLink="true">https://ask.ghassem.com/222/what-is-the-difference-between-a-bar-plot-and-a-histogram</guid>
<pubDate>Mon, 01 Oct 2018 13:09:35 +0000</pubDate>
</item>
</channel>
</rss>