Thanks to visit codestin.com Credit goes to github.com
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 0db0992 commit dc6f72bCopy full SHA for dc6f72b
1 file changed
lib/matplotlib/tests/test_axes.py
@@ -2930,9 +2930,9 @@ def test_hist_stacked_normed():
2930
# make some data
2931
d1 = np.linspace(1, 3, 20)
2932
d2 = np.linspace(0, 10, 50)
2933
- fig = plt.figure()
2934
- ax = fig.add_subplot(111)
2935
- ax.hist((d1, d2), stacked=True, normed=True)
+ fig, ax = plt.subplots()
+ with pytest.warns(UserWarning):
+ ax.hist((d1, d2), stacked=True, normed=True)
2936
2937
2938
@image_comparison(baseline_images=['hist_stacked_normed'], extensions=['png'])
0 commit comments