[Matplotlib-users] variant not working in text()...
Hi all, I'm adding some text to a plt like this: import mapplotlib.pyplot as plt fig=plt.figure() plt.text(0.5,0.5,some text, variant='small-caps') but the text that is plotted is not small caps, its just normal. Is this a bug or am I doing something wrong? -- Cheers, Nick Schurch Data Analysis Group (The Barton Group), School of Life Sciences, University of Dundee, Dow St, Dundee, DD1 5EH, Scotland, UK Tel: +44 1382 388707 Fax: +44 1382 345 893 -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Re: [Matplotlib-users] variant not working in text()...
That will only work if you have a small-caps variant of the font installed (which the vast majority of fonts do not). matplotlib does not do any font synthesis at all -- i.e. it does not create a pseudo font variation when one does not exist on disk. Mike On 05/20/2010 10:19 AM, Nick Schurch wrote: Hi all, I'm adding some text to a plt like this: import mapplotlib.pyplot as plt fig=plt.figure() plt.text(0.5,0.5,some text, variant='small-caps') but the text that is plotted is not small caps, its just normal. Is this a bug or am I doing something wrong? -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA -- ___ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users