您的位置:首页 > 其它

Embedding Greek and scripts into text IDL

2016-06-14 21:32 239 查看
The embedded symbols will be evaluated at run-time, so they will be correct both on the display and if you send this command to a PostScript file, or make a 

high-quality raster file with ImageMagick. Here, for example, is how the figure below was created.
cgPlot, cgDemoData(1), XTitle='Length ($\mu$M)', YTitle='Distance ($\Angstrom$$\up2$)', $
Output='embedsymbols_1.png', Aspect = 0.66


Embedded symbols are rendered correctly on the display and in PostScript and in 

high-quality raster files.
 

There is no particular limit to how many characters can be included in superscripts and subscripts. The following embedded symbols can be used.
$\upTEXT$ — Raise the text in TEXT to superscript level and reduce character size by 62%.
$\extTEXT$ — Raise the text in TEXT to superscript level and reduce character size by 44%.
$\downTEXT$ — Lower the text in TEXT to subscript level and reduce character size by 62%.
$\subTEXT$ — Lower the text in TEXT to subscript level and reduce character size by 44%.

Here is a contrived example.
cgPlot, cgDemoData(1), Charsize=2.0, $
XTitle='Distance ($\angstrom$$\up2$)', $
YTitle='H$\subSubscript$ and B$\expSuperscript$'


You see the results here.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: