Question: Python Matplotlib Use the following data: from numpy import random mu = 10500 sigma = 250 values = mu + sigma * random.randn(10000) x =
Python
Matplotlib Use the following data: from numpy import random mu = 10500 sigma = 250 values = mu + sigma * random.randn(10000) x = mu + sigma * random.randn(100) y = mu + sigma * random.randn(100)
Complete the following steps to create a two-column subplot image: Use subplot to initialize the first plot (left column) in the two-column subplot image. In it: o Create a histogram of values with 25 columns, set the facecolor to green, and set the edgecolor to none. o Give the plot a Y-label of "count of values".
Use subplot to initialize the second plot (right column) in a two-column subplot image. In it: o Create a scatter plot of x and y, set the area to 300, set alpha to 0.25, set edgecolor to none, set color equal to random.rand(100). o Give the plot an X-label of "x". o Give the plot a Y-label of "y". o Set the x-limits of the plot to: 10,000 to 11,000. o Set the y-limits of the plot to: 10,000 to 11,000. o Add a grid to the plot.
Show the plot.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
