1 Jun 14:46
Re: computer modern
There's no easy way to do what you ask. You can, however, use math mode
to get to those characters in STIX. For example, set mathtext.fontset
to "stix" and then:
r'$\mathcal{Caligraphic} \mathtt{Monospace}$'
Mike
Nicolas Pourcelot wrote:
> Thanks, it works well.
>
> However, I forgot that computer modern does not include accented
> characters (unlike latin modern), so I eventually used Stix :
>
> mpl.rc('font', family = 'serif', serif = 'STIXGeneral')
>
> By the way, is there any way to use Stix for sans-serif as well, or
> even cursive and monospace ? I don't know how to do that, since Stix
> seems to contain all of them in a single file (STIXGeneral.ttf) ?
>
> Nicolas
>
>
> Michael Droettboom a écrit :
>> The name of the Computer Modern Roman font that ships with matplotlib
>> is "cmr10", so
>>
>> mpl.rc('font', family = 'serif', serif = 'cmr10')
>>
>> should work.
(Continue reading)
RSS Feed