-
-
Notifications
You must be signed in to change notification settings - Fork 8k
Closed
Labels
Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues
Milestone
Description
2.0b4 and master
import matplotlib as mpl
from matplotlib import pyplot as plt
import numpy as np
mpl.rcdefaults()
mpl.rcParams["hist.bins"] = "auto"
np.random.seed(1)
x = np.random.rand(1000)
n0, b0, p0 = plt.hist(x)
n1, b1, p1 = plt.hist(x, "auto")
print(n0)
print(n1)
plt.show()
The first histogram has 10 bins, the second one has 11 bins.
Note that this does not affect calling the hist
method on an explicitly created Axes object.
Metadata
Metadata
Assignees
Labels
Difficulty: Easyhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issues