Skip to content

Commit ddd3311

Browse files
committed
Moved self.subplot check to a seperate bool
1 parent 9974632 commit ddd3311

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pandas/plotting/_matplotlib/core.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1932,7 +1932,12 @@ def _make_plot(self, fig: Figure) -> None:
19321932
_stacked_subplots_ind = {}
19331933
_stacked_subplots_offsets = []
19341934

1935-
if self.subplots != False & self.stacked:
1935+
if self.subplots:
1936+
subplots_status = 1
1937+
else:
1938+
subplots_status = 0
1939+
1940+
if subplots_status & self.stacked:
19361941
sub_range = range(len(self.subplots))
19371942
ss_temp = {
19381943
x: self.subplots[x] for x in sub_range if len(self.subplots[x]) > 1

0 commit comments

Comments
 (0)