All,
I just submitted bug #2963827 detailing this, but thought that I would echo the problem here. When plotting annotations and specifying the FontProperties to use, the specified values are completely ignored. See the attached script and image for an example. Am I doing something inherently wrong, or is this really a bug? Thanks, --James Evans
textFormat.png
Description: Binary data
#!/usr/bin/env python
import pylab
from matplotlib.font_manager import FontProperties
fig = pylab.figure()
ax = pylab.subplot( 1, 1, 1 )
normalFont = FontProperties( family = "Sans Serif",
style = "normal",
variant = "normal",
weight = 500,
stretch = 500,
size = 14,
)
ax.annotate( "Normal Font", (0.1, 0.1), xycoords='axes fraction',
fontproperties = normalFont )
boldFont = FontProperties( family = "Sans Serif",
style = "normal",
variant = "normal",
weight = 750,
stretch = 500,
size = 14,
)
ax.annotate( "Bold Font", (0.1, 0.2), xycoords='axes fraction',
fontproperties = boldFont )
boldItemFont = FontProperties( family = "Sans Serif",
style = "italic",
variant = "normal",
weight = 750,
stretch = 500,
size = 14,
)
ax.annotate( "Bold Italic Font", (0.1, 0.3), xycoords='axes fraction',
fontproperties = boldItemFont )
lightFont = FontProperties( family = "Sans Serif",
style = "normal",
variant = "normal",
weight = 200,
stretch = 500,
size = 14,
)
ax.annotate( "Light Font", (0.1, 0.4), xycoords='axes fraction',
fontproperties = lightFont )
condensedFont = FontProperties( family = "Sans Serif",
style = "normal",
variant = "normal",
weight = 500,
stretch = 100,
size = 14,
)
ax.annotate( "Condensed Font", (0.1, 0.5), xycoords='axes fraction',
fontproperties = condensedFont )
pylab.show()
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Matplotlib-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
