Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c51bebe

Browse files
comply with PEP8
1 parent 8ae4b43 commit c51bebe

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

lib/matplotlib/tests/test_datetime.py

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def test_hexbin(self):
173173
@mpl.style.context("default")
174174
def test_hist(self):
175175
mpl.rcParams["date.converter"] = 'concise'
176-
fig, (ax1, ax2, ax3) = plt.subplots(3, 1, figsize=(8, 12), constrained_layout=True)
176+
fig, (ax1, ax2, ax3) = plt.subplots(3, 1, constrained_layout=True)
177177

178178
start_date = datetime.datetime(2023, 10, 1)
179179
time_delta = datetime.timedelta(days=1)
@@ -182,9 +182,21 @@ def test_hist(self):
182182
values2 = np.random.randint(1, 10, 30)
183183
values3 = np.random.randint(1, 10, 30)
184184

185-
ax1.hist([start_date + i * time_delta for i in range(30)],bins=10,weights=values1)
186-
ax2.hist([start_date + i * time_delta for i in range(30)],bins=10,weights=values2)
187-
ax3.hist([start_date + i * time_delta for i in range(30)],bins=10,weights=values3)
185+
ax1.hist(
186+
[start_date + i * time_delta for i in range(30)],
187+
bins=10,
188+
weights=values1
189+
)
190+
ax2.hist(
191+
[start_date + i * time_delta for i in range(30)],
192+
bins=10,
193+
weights=values2
194+
)
195+
ax3.hist(
196+
[start_date + i * time_delta for i in range(30)],
197+
bins=10,
198+
weights=values3
199+
)
188200

189201
@pytest.mark.xfail(reason="Test for hist2d not written yet")
190202
@mpl.style.context("default")

0 commit comments

Comments
 (0)