Question: in Python: Data: x = np.linspace (0, 10) y_1 = np.sin(x) y_2 = np.cos(x) Create a matplotlib figure of size (12,5), add a single axes,
in Python:
Data:
x = np.linspace (0, 10) y_1 = np.sin(x) y_2 = np.cos(x)
- Create a matplotlib figure of size (12,5), add a single axes, and then plot (x, y_1) and (x, y_2) on the axes, finally display your plot.
- Add labels, title and legend to your plot
- Customize your plot by changing the color, linestyle, markers, linewidth, etc to make it look nicer.
- Set the x and y limits in order to zoom in on part of your plot.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
