Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

plot function in numpy

import numpy as np 
from matplotlib import pyplot as plt 

x = np.arange(1,11) 
y = 2 * x + 5 
plt.title("Matplotlib demo") 
plt.xlabel("x axis caption") 
plt.ylabel("y axis caption") 
plt.plot(x,y) 
plt.show()
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #plot #function #numpy
ADD COMMENT
Topic
Name
6+4 =