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.