@@ -1914,7 +1914,7 @@ def subplots(
19141914 array = array [None , :] if order == 'C' else array [:, None ]
19151915 elif array .ndim != 2 :
19161916 raise ValueError
1917- array [array is None ] = 0 # use zero for placeholder
1917+ array [array == None ] = 0 # use zero for placeholder # noqa
19181918 except (TypeError , ValueError ):
19191919 raise ValueError (
19201920 f'Invalid subplot array { array !r} . '
@@ -2073,11 +2073,11 @@ def subplots(
20732073 # Default spaces between axes
20742074 wratios , hratios = [* wratios ], [* hratios ] # copies
20752075 wspace , hspace = np .array (wspace ), np .array (hspace ) # also copies!
2076- wspace [wspace is None ] = (
2076+ wspace [wspace == None ] = ( # noqa
20772077 units (rc ['subplots.innerspace' ]) if sharey == 3 else
20782078 units (rc ['subplots.ylabspace' ]) - units (rc ['subplots.titlespace' ])
20792079 if sharey in (1 , 2 ) else units (rc ['subplots.ylabspace' ]))
2080- hspace [hspace is None ] = (
2080+ hspace [hspace == None ] = ( # noqa
20812081 units (rc ['subplots.titlespace' ]) + units (rc ['subplots.innerspace' ])
20822082 if sharex == 3 else units (rc ['subplots.xlabspace' ])
20832083 if sharex in (1 , 2 ) else units (rc ['subplots.titlespace' ])
0 commit comments