(continued from previous page np linspacedevide line from to *pi into equidistant points np linspace( *np pi sinx np sin(xfind sin(xfor above points plt plot( ,sinxplot (xsin( )plt xlabel("time"label for axis plt ylabel("amplitude"label for axis plt title('sine wave'title plt xlim([ *np pi] -axis display range plt ylim([- ] -axis display range plt show(to show the plot on the screen explanation listing first line import numpy library to the code alsoit is imported with shortname 'np'which is used in line as 'np linspaceif line is written as 'import numpy'then line should be written as 'numpy linspacefurtherthird line import 'pyplotfunction of 'matplotliblibrary as plt rest of the lines are explained as comments in the listing fig sine wave using numpy and matplotliblisting arrays arrays can be created using 'arangeand 'arraycommands as shown below arange one dimensional array can be created using 'arangeoption as shown below numpyscipy and matplotlib