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

Reply via email to