Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

set xlim histogram python

import numpy as np
import matplotlib.pyplot as plt

x = np.random.uniform(-100, 100, 1000)
plt.hist(x, bins=30, range=(-50, 50))
plt.show()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #set #xlim #histogram #python
ADD COMMENT
Topic
Name
6+2 =