gonum / gonum/plot

Feature request: Superscript/subscript support in text strings

Open
#228 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

Useful for plots that include chemical names, variables, etc. (example: R2).

A possible way to implement this would be to support a subset of Markdown or HTML syntax (for subscript and superscript, and possibly but less importantly bold and italics). There already exist Go parsers for both, so the tricky part would be implementing the text sizing and offsetting in all of the vg backends.

A more powerful alternative would be to support Latex syntax, but I feel like the difficulty to usefulness ratio would be too high.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.