Q:

fontweight property has no effect on AnchoredText object?

I'm trying to draw some text through an AnchoredText (see the code below) but the fontweight property does not seem to have any effect:

I'm using Python 3.7.3 and matplotlib 3.1.0.
What am I missing here?

import matplotlib.pyplot as plt
from matplotlib.offsetbox import AnchoredText

ax = plt.subplot(131)
plt.plot([])
anchored_text = AnchoredText(
    "aaa bb ccc", loc=8,
    prop={'family': 'Ubuntu Condensed', 'size': 35, 'fontweight': 'normal'},
    frameon=False)
ax.add_artist(anchored_text)

ax = plt.subplot(132)
plt.plot([])
anchored_text = AnchoredText(
    "aaa bb ccc", loc=8,
    prop={'family': 'Ubuntu Condensed', 'size': 35, 'fontweight': 'bold'},
    frameon=False)
ax.add_artist(anchored_text)

ax = plt.subplot(133)
plt.plot([])
anchored_text = AnchoredText(
    "aaa bb ccc", loc=8,
    prop={'family': 'Ubuntu Condensed', 'size': 35, 'fontweight': 'light'},
    frameon=False)
ax.add_artist(anchored_text)

plt.show()

A:

As per https://fonts.google.com/specimen/Ubuntu+Condensed there's only 'Regular' style for your choice of font, so using different fontweight parameters will not have any impact

