Answers for "set xlim histogram python"

0

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()
Posted by: Guest on November-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language