We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d79d6bb commit 2dde48aCopy full SHA for 2dde48a
lib/matplotlib/tests/baseline_images/test_axes/hist_density.png
17 KB
lib/matplotlib/tests/test_axes.py
@@ -1464,6 +1464,14 @@ def test_hist_step_filled():
1464
assert all([p.get_facecolor() == p.get_edgecolor() for p in patches])
1465
1466
1467
+@image_comparison(baseline_images=['hist_density'], extensions=['png'])
1468
+def test_hist_density():
1469
+ np.random.seed(19680801)
1470
+ data = np.random.standard_normal(2000)
1471
+ fig, ax = plt.subplots()
1472
+ ax.hist(data, density=True)
1473
+
1474
1475
@image_comparison(baseline_images=['hist_step_log_bottom'],
1476
remove_text=True, extensions=['png'])
1477
def test_hist_step_log_bottom():
0 commit comments