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