Do you know how to apply different size to different part of text label?
fig, ax = plt.subplots()
ax.scatter(x, y,
s=z / np.max(z)*900, alpha=0.5)
labels = [f'{i:s}\n{val:.2f}' for (i, val) in zip(names,z)]
texts = []
for xx, yy, text in zip(x, y, labels):
texts.append(ax.text(xx, yy, text))
I want to set one fontsize for '{i:s}' part and other size for the rest '{val:.2f}' without TEX using.