@@ -173,7 +173,7 @@ def test_hexbin(self):
173
173
@mpl .style .context ("default" )
174
174
def test_hist (self ):
175
175
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 )
177
177
178
178
start_date = datetime .datetime (2023 , 10 , 1 )
179
179
time_delta = datetime .timedelta (days = 1 )
@@ -182,9 +182,21 @@ def test_hist(self):
182
182
values2 = np .random .randint (1 , 10 , 30 )
183
183
values3 = np .random .randint (1 , 10 , 30 )
184
184
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
+ )
188
200
189
201
@pytest .mark .xfail (reason = "Test for hist2d not written yet" )
190
202
@mpl .style .context ("default" )
0 commit comments