Closed fherwig closed 6 years ago
for i in range(len(risos)): if logy: y = np.log10(abunds[i])
<===>
for i in range(len(risos)): if logy: y = np.log10(abunds if len(risos) < 2 else abunds[i])
When len(risos) = 1, meaning only one species. abunds[i] was returning a single value rather than an array of the same dimension as x
Demo notebook