%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np

"""
Explanation: Visualization 1: Matplotlib Basics Exercises
End of explanation
"""


plt.scatter(np.random.randn(100), np.random.randn(100), c='g', s=50, marker='+', alpha=0.7)
plt.xlabel('Random x values')
plt.ylabel('Random y values')
plt.title('Randomness Fun!')

"""
Explanation: Scatter plots
Learn how to use Matplotlib's plt.scatter function to make a 2d scatter plot.

Generate random data using np.random.randn.
Style the markers (color, size, shape, alpha) appropriately.
Include an x and y label and title.
End of explanation
"""


plt.hist(np.random.randn(100), bins=5, log=True, orientation='horizontal')
plt.xlabel('Logarithmic Probability')
plt.ylabel('Random Number')
plt.title('Probability of Random Numbers')

"""
Explanation: Histogram
Learn how to use Matplotlib's plt.hist function to make a 1d histogram.

Generate randpom data using np.random.randn.
Figure out how to set the number of histogram bins and other style options.
Include an x and y label and title.
End of explanation
"""


