#!/usr/bin/env python
"""
Example of using plt.axvline() to plot a a vertical line on a Matplotlib plot.
"""
import numpy as np
import matplotlib.pyplot as plt

values = np.random.randn(100)
plt.hist(values, label='values')
plt.axvline(values.mean(), color='red', linestyle='--', linewidth=4, label='mean')
plt.legend()
plt.show()

84388f3da351458f9b82e5c4c2157c2812fb1039
<mask token>

<mask token>
plt.hist(values, label='values')
plt.axvline(values.mean(), color='red', linestyle='--', linewidth=4, label=
    'mean')
plt.legend()
plt.show()

<mask token>
values = np.random.randn(100)
plt.hist(values, label='values')
plt.axvline(values.mean(), color='red', linestyle='--', linewidth=4, label=
    'mean')
plt.legend()
plt.show()

<mask token>
import numpy as np
import matplotlib.pyplot as plt
values = np.random.randn(100)
plt.hist(values, label='values')
plt.axvline(values.mean(), color='red', linestyle='--', linewidth=4, label=
    'mean')
plt.legend()
plt.show()

#!/usr/bin/env python
"""
Example of using plt.axvline() to plot a a vertical line on a Matplotlib plot.
"""
import numpy as np
import matplotlib.pyplot as plt

values = np.random.randn(100)
plt.hist(values, label='values')
plt.axvline(values.mean(), color='red', linestyle='--', linewidth=4, label='mean')
plt.legend()
plt.show()
