I am trying to plot histograms with two y axes.
fig, ax = plt.subplots(nrows=2, ncols=2, figsize=(12, 8))
ax2 = ax.twinx()
but this line (ax2 = ax.twinx())
results in error:
'numpy.ndarray' object has no attribute 'twinx'
I am trying to plot histograms with two y axes.
fig, ax = plt.subplots(nrows=2, ncols=2, figsize=(12, 8))
ax2 = ax.twinx()
but this line (ax2 = ax.twinx())
results in error:
'numpy.ndarray' object has no attribute 'twinx'