When I tried to add labels for each bar, it strangely only drew a single bar. Does this mean I have to add the labels manually myself?
import numpy as np
import pandas as pd
import ultraplot as uplt
x = np.arange(5)
y = [10, 15, 7, 12, 9]
data = pd.DataFrame(y, index=x)
cycle = uplt.Cycle("RdYlGn", 5)
fig, ax = uplt.subplots(journal="nat1")
for idx, row in data.iterrows():
ax.bar(idx, row.iloc[0], cycle=cycle, edgecolor="black", bar_labels=True)