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]

st: Mars & Venus - M/F symbols on Stata scatterplots (Stata 12 under Win 7)


From   "Allan Reese (Cefas)" <[email protected]>
To   "[email protected]" <[email protected]>
Subject   st: Mars & Venus - M/F symbols on Stata scatterplots (Stata 12 under Win 7)
Date   Fri, 1 Nov 2013 11:06:43 +0000

Extracts from emails sent to StataCorp:

I had another go at this and finally succeeded.  What had held me back
was not realising that the "font name" was not the Windows file name.  I
found a free truetype font
(http://www.fonts4free.net/female-and-male-sym-font.html). Copy the font file to a temp place and click on it.  It will open to show the symbols and ask if it's to install.

You can then put symbols in text:

sysuse auto
scatter wei pri, text(3000 6000   `"{fontface "Female and male
symbols":Mm Ff Hh Aa}"', size(*2)  )

Obviously I would like the M and F symbols to mark points, so the next
step is how to change the font selected by marker label. 

...

Using the auto data (pure nonsense, but the font has other symbols to try):

label define sexlab 1 `"{fontface "Female and male symbols":M }"' 2 `"{fontface "Female and male symbols":F }"'
label values rep78 sexlab
scatter price mpg if rep78<3 , ms(i)  mlab(rep78) mlabpos(c) mlabsize(*2) by(rep78)

and everything is great except the by() subtitles.  Why aren't they interpreting the SMCL?  [... an outstanding issue for StataCorp!]

Allan





*
*   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