what is pylab
Title
Question
Give any example of pylab program to understand easily
Python-3.4.3 Getting-started-with-IPython 03-04 min 30-40 sec
Answers:
pylab is a module in Python that combines the functionality of matplotlib (a popular plotting library) with the numerical mathematics functionality provided by numpy. Please let us know questions regarding this tutorial. <code>
</code>
</code>
import pylab
x = [1, 2, 3, 4, 5]
y = [2, 3, 5, 7, 11]
pylab.plot(x, y)
pylab.xlabel('X-axis')
pylab.ylabel('Y-axis')
pylab.title('Sample Plot')
pylab.show()
Login to add comment