File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -308,20 +308,10 @@ def _setup_subplots(self):
308
308
309
309
axes = _flatten (axes )
310
310
311
- valid_log = [False , True , 'sym' ]
312
- for i in [self .logx , self .logy , self .loglog ]:
313
- if i not in valid_log :
314
- raise ValueError ("Wrong input for log option." )
315
-
316
- if self .logx is True or self .loglog is True :
311
+ if self .logx or self .loglog :
317
312
[a .set_xscale ('log' ) for a in axes ]
318
- elif self .logx == 'sym' or self .loglog == 'sym' :
319
- [a .set_xscale ('symlog' ) for a in axes ]
320
-
321
- if self .logy is True or self .loglog is True :
313
+ if self .logy or self .loglog :
322
314
[a .set_yscale ('log' ) for a in axes ]
323
- elif self .logy == 'sym' or self .loglog == 'sym' :
324
- [a .set_yscale ('symlog' ) for a in axes ]
325
315
326
316
self .fig = fig
327
317
self .axes = axes
You can’t perform that action at this time.
0 commit comments