In [1]:
import numpy as np
import matplotlib.pyplot as plt
    
    # Define the x values
x = np.linspace(-10, 10, 400)
    
    # Define the two functions
y1 = np.sin(x)
y2 = np.cos(x)
    
    # Plot the functions
plt.figure(figsize=(8,6)) # Set the figure size
plt.plot(x, y1, label='sin(x)', color='blue') # Plot the first function
plt.plot(x,  y2, label='cos(x)', color='red') # Plot the second function
    
    # Add labels, title, and legend
plt.title('Plot of sin(x) and cos(x)')
plt.xlabel('x-axis')
plt.ylabel('y-axis')
plt.legend()
    
    # Show the plot
plt.grid(True)
plt.show
Out[1]:
<function matplotlib.pyplot.show(close=None, block=None)>
No description has been provided for this image