Plot Special / Scientific Symbols in Xmgrace, UV-CDAT

Xmgrace is a very nice piece of software to create 2-D line plots.

xmgrace module is available in ‘genutil‘ module in uv-cdat.

Here explained how to plot special characters in xmgrace.

  • Subscript, superscript
    x-squared: x\S2\N
    subscript: 3\s10\N
  • Special symbols, example: Angstrom symbol
    \cE\C
  • Special symbols, example: degree symbol
    \c0\C
  • For other characters, look at the below table or list here: ascii table with low and high characters. Just use the character from the ASCII Character column between \c and \C to produce the one from the Special/Scientific Symbols column.
  • In the link http://blog.louic.nl/files/ascii.html the most scientific characters are highlighted. 
  • In general, \cASCII Character\C will plot appropriate Special/Scientific Symbol (which are listed in the below table) in xmgrace using UVCDAT
  • Note \c and \C are escape characters.

 


>>> from genutil import xmgrace

>>> x = xmgrace.init()

>>> stitle = 'Unit : \c0\CCelsius year\S-1'

>>> x.add_string(x=0.5, y=0.9, text=stitle)


Output plot of above snippet

grace-eg

 

ASCII No ASCII Character Special / Scientific Symbols
33 ! ¡
34 ¢
35 # £
36 $ ¤
37 % ¥
38 & ¦
39 §
40 ( ¨
41 ) ©
42 * ª
43 + «
44 , ¬
45
46 . ®
47 / ¯
48 0 °
49 1 ±
50 2 ²
51 3 ³
52 4 ´
53 5 µ
54 6
55 7 ·
56 8 ¸
57 9 ¹
58 : º
59 ; »
60 < ¼
61 = ½
62 > ¾
63 ? ¿
64 @ À
65 A Á
66 B Â
67 C Ã
68 D Ä
69 E Å
70 F Æ
71 G Ç
72 H È
73 I É
74 J Ê
75 K Ë
76 L Ì
77 M Í
78 N Î
79 O Ï
80 P Ð
81 Q Ñ
82 R Ò
83 S Ó
84 T Ô
85 U Õ
86 V Ö
87 W ×
88 X Ø
89 Y Ù
90 Z Ú
91 [ Û
92 \ Ü
93 ] Ý
94 ^ Þ
95 _ ß
96 ` à
97 a á
98 b â
99 c ã
100 d ä
101 e å
102 f æ
103 g ç
104 h è
105 i é
106 j ê
107 k ë
108 l ì
109 m í
110 n î
111 o ï
112 p ð
113 q ñ
114 r ò
115 s ó
116 t ô
117 u õ
118 v ö
119 w ÷
120 x ø
121 y ù
122 z ú
123 { û
124 | ü
125 } ý
126 ~ þ

Reference Link :  http://blog.louic.nl/?p=249

 

Advertisements

About arulalant

Currently working as "Project Scientist – C" in National Centre for Medium Range Weather Forecasting (NCMRWF), MoES, Noida, India
This entry was posted in UVCDAT and tagged , , , , , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s