MCPcopy
hub / github.com/pandas-dev/pandas / _validate_sharex

Method _validate_sharex

pandas/plotting/_matplotlib/core.py:309–320  ·  view source on GitHub ↗
(sharex: bool | None, ax, by)

Source from the content-addressed store, hash-verified

307 @final
308 @staticmethod
309 def _validate_sharex(sharex: bool | None, ax, by) -> bool:
310 if sharex is None:
311 # if by is defined, subplots are used and sharex should be False
312 if ax is None and by is None:
313 sharex = True
314 else:
315 # if we get an axis, the users should do the visibility
316 # setting...
317 sharex = False
318 elif not is_bool(sharex):
319 raise TypeError("sharex must be a bool or None")
320 return bool(sharex)
321
322 @classmethod
323 def _validate_log_kwd(

Callers 1

__init__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected