Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Changing Font in Legends


From   Phil Clayton <[email protected]>
To   [email protected]
Subject   Re: st: Changing Font in Legends
Date   Sat, 11 May 2013 16:12:27 +1000

You can definitely have different fonts in the one graph. See -help graph text- and the following silly example:

sysuse auto, clear
separate mpg, by(foreign)
scatter mpg0 mpg1 weight , legend(order(1 "{stSerif:Domestic}" 2 "{stSans:Foreign}"))

Phil

On 11/05/2013, at 12:47 AM, Sergiy Radyakin <[email protected]> wrote:

> David,
> 
> font type is a per-graph setting. Individual graph elements can not have
> fonts that are different from each other. To set fontface for the whole
> graph right-click the graph and select font in the <Preferences>
> dialog.
> 
> If you are writing a general program, avoid referring to a particular font
> since this is platform specific. Use aliases reported and set with the
> -graph set window- command. For example:
> 
> graph set window fontface fontfaceserif
> 
> will set whatever the font the user wants to use for serif-type, which
> can happen to be Arial on a Windows machine.
> 
> Best, Sergiy
> 
> On Thu, May 9, 2013 at 12:25 AM, David Crow <[email protected]> wrote:
>> Dear All:
>> 
>> I have a scatterplot for which I'd to use one font, Times New Roman,
>> generally, and another, Arial, for marker labels and in the legend.
>> How can I do this?
>> 
>> Thanks,
>> David
>> 
>> --
>> Web site for México, las Américas y el Mundo:
>> http://mexicoyelmundo.cide.edu/
>> 
>> ====================================
>> David Crow
>> Profesor-Investigador/Assistant Professor
>> División de Estudios Internacionales
>> Carretera México-Toluca 3655
>> Col. Lomas de Santa Fe 01210  México, D.F.
>> Tel.:  5727-9800, ext. 2152
>> Fax:  5727-9872
>> ====================================
>> 
>> Conmutador: 5727-98-00 Lada sin costo: 01 800 021 2433 (CIDE) |©
>> 
>> *
>> *   For searches and help try:
>> *   http://www.stata.com/help.cgi?search
>> *   http://www.stata.com/support/faqs/resources/statalist-faq/
>> *   http://www.ats.ucla.edu/stat/stata/
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/faqs/resources/statalist-faq/
> *   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index