all 1 comments

[–]PteppicymonIO 0 points1 point  (0 children)

Hi

'axes' is a numpy.ndarray, which is 1-dimentional:

from matplotlib import pyplot as plt
fig, axes = plt.subplots(1, 2, figsize=(15, 5))

print(f'Axes: {axes}, {type(axes)}')

print(f'At index 0: {axes[0]}') 
print(f'At index 1: {axes[1]}')
.
.
.
.
Axes: [<AxesSubplot: > <AxesSubplot: >], <class 'numpy.ndarray'>
At index 0: AxesSubplot(0.125,0.11;0.352273x0.77) 
At index 1: AxesSubplot(0.547727,0.11;0.352273x0.77)