Closed
Description
The following code should produce very different font sizes in the AnchoredSizeBar text but it just shows the same size:
from mpl_toolkits.axes_grid1.anchored_artists import AnchoredSizeBar
from matplotlib.font_manager import FontProperties
fp = FontProperties()
fp.set_size('xx-large')
fig, ax = subplots(2)
ax[0].plot(arange(10))
asb = AnchoredSizeBar(ax[0].transData, 5, 'xx-large', loc=8, prop=fp)
ax[0].add_artist(asb)
ax[1].plot(arange(10))
fp.set_size('xx-small')
asb2 = AnchoredSizeBar(ax[1].transData, 5, 'xx-small', loc=8, prop=fp)
ax[1].add_artist(asb2)
This code produces the following output on my system:
Env:
EPD 7.3 all recent official updates (= MPL 1.3.0),
IPython 1.0 with QT4 backend on MacOSX 10.8.4