Data Visualization

With the combination of Numpy ,Pandas and Matplotlib we can draw the excellent type of graphical representation.
Basically data visualization is the way to understand complex and massive data in a better way.

Seaborn:

Seaborn is a visualization library of python(matplotlib).Seaborn gives the high quality interface drawing the understand the complex statistical problem

Python Chart Programs
Programs

#importing matplotlib pyplot library
import matplotlib.pyplot as abc
#importing seaborn whitegrid
abc.style.use('seaborn-whitegrid')
# uses figure fusion to draw figure
a= abc.figure()
# creating x and y axes
b = abc.axes()

Output
data Visualization

Program 2

import numpy as np 
import matplotlib.pyplot as pl
#creating array
x = [1,2,4,5,6,7,8]
#creating array
y=[9,8,7,6,5,4,2]
#simple plot
plt.plot(x,y)

Output
[<matplotlib.lines.Line2D at 0x7f75fea46eb8>]

Labeling Graph

We can label the graph at x axes and y axes for better understanding.

import numpy as np 
import matplotlib.pyplot as pl
#creating array
x = [1,2,4,5,6,7,8]
#creating array
y=[9,8,7,6,5,4,2]
pl.xlabel('Supply')
pl.ylabel('Demand')
#simple plot
plt.plot(x,y)

Output

 [<matplotlib.lines.Line2D at 0x7f75fe47bcc0>]


Here you can see the demand and Supply labels at x and y axes

Subscribe Now