Saturday, 8 August 2015

Creating Charts Using Python

 In this blog i will explain how to create charts in python. "matplot" is the library in python that is used to create charts. matplotlib also outputs charts in other formats like images
 


The above screenshot shows us the simple graph constructed in Ipython notebook by using  matplot library.
                                Now consider Radish survey,we will draw a bar plot for number of votes each radish variety achieved.We are importing two modulus -pyplot is one way to plot graph data with matplotlib, It's modelled on the way charting works in another popular commercial program. Mat-lab Numpy is a module providing lots of numeric functions in python 
The above screen shot shows the bar graph for radish survey,the varieties of radish are placed on the x axis of graph and votes are placed on the y axis of the plot. 

No comments:

Post a Comment