[end of examplewe have used basic plotting function in the matplotlib libraryplot(xlabel(ylabel(show(example plotting sine curve im po rt numpy np im po rt [ np plt plot ( yplt xlabel ' plt ylabel ' show this gives the following plot (see figure ) better solution will then be