Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • diameter sign in graph

    I would like to use a diameter sign (Unicode 2300) in a graph but I am not able to do so with the unicode code. Of course, using {c O/} is a good way around, but nonethless I wonder why Stata 15.1 gives me:
    Click image for larger version

Name:	stat15_u2300.PNG
Views:	1
Size:	11.8 KB
ID:	1471530


    And with the -grtext- (from ssc) tool I get:

    Click image for larger version

Name:	stata15_u2300_grtext.png
Views:	1
Size:	18.6 KB
ID:	1471529


    This does not look like the sign I want to have...The technical documentation of unicode shows that it should look like:
    Click image for larger version

Name:	u2300.PNG
Views:	1
Size:	98.9 KB
ID:	1471528


    Is there another good way to get this original unicode diameter sign into the graph?

  • #2
    The font Stata is using to display output in your Results window does not include the Unicode character 2300. On my Mac, using the character set Menlo Regular, the result is as expected. Try selecting a different monospace font in Stata's preferences. You'll need to use that font in your graph as well.
    Click image for larger version

Name:	unicode.png
Views:	1
Size:	10.9 KB
ID:	1471566

    Last edited by William Lisowski; 22 Nov 2018, 06:21.

    Comment


    • #3
      Following on from William, the DejaVu Sans font will give you the symbol you want if you are using Windows

      Click image for larger version

Name:	stata.png
Views:	1
Size:	4.9 KB
ID:	1471607

      Martyn

      Comment


      • #4
        William Lisowski Martyn Sherriff : Thank you very much for this wonderful tip. I have not thought that this can be an issue...

        It works now...

        Comment

        Working...
        X