Charts in Python

Every statistical programming language should have facility of charts. In python also you can create charts by importing matplotlib.pyplot library.

Here is a simple example of how to create charts in python:chart1Now we will create bar graph for the radish voting problem:

chart2

Now as you can see there is no label for Y axis, we can easily add it by ylabel(“Vote Count”) command.

chart4

 

 

Share the joy
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
Somenath

Leave a Reply

avatar
  Subscribe  
Notify of