Wednesday 18 March 2015

Creating a simple chart in Python

Python is an excellent tool for data analysis and visualization. To start with I have written a simple (and a very common to start with code) to plot a very basic chart.

I am using Anaconda Python, as this is more easy and comes with all the modules already. In case you want to install some module in Anaconda Python, simply go the the Anaconda command prompt and type in the following command.

conda install 'module name', for example to install 'bokeh' you can write a command conda install bokeh. This will install the all the required stuff in 'bokeh'. ('bokeh' is an interactive visualization library in python and an effective one!). But I am using matplotlib library here.


This gives an output like this

This can be extended to format the chart and draw more advanced charts.

No comments:

Post a Comment