Python Bubble Charts

It takes the input from x and y coordinate and draw the circle graphical data representation, lets take the demonstration.


import matplotlib.pyplot as pl
import numpy as ab
# taking random data
x = ab.random.rand(20000)
y = ab.random.rand(20000)
z = ab.random.rand(20000)
co = ab.random.rand(20000) 
# invokes scatter chart function
pl.scatter(x, y,s=z**550,c=co)


Python 3D Chart

Matplotlib also having the capability of the drawing the 3D chart.

#importing matplotlib
import matplotlib.pyplot as pl
#invoking figure function
f= pl.figure()
#draw the axes
ax = pl.axes(projection='3d')


Subscribe Now