Embedding Greek and scripts into text IDL

本文介绍了一种在图表中正确显示和嵌入符号的方法,包括在超文本标记语言和PostScript文件中的应用。通过调整字符大小和位置,可以实现高质量的图形输出。文章还提供了具体的代码示例和渲染效果。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值