`On Saturday, 17 September 2016 at 11:45:07 UTC, Edwin van Leeuwen`

`wrote:`

On Saturday, 17 September 2016 at 11:22:04 UTC, John Colvinwrote:On Saturday, 17 September 2016 at 02:41:15 UTC, brocolis wrote:How do I draw math formulas programmatically? I want to do onscreen what latex does on .pdf.## Advertising

And I want to draw a math formula in the image generated withggplotd.Generate data from those formulas (I like to do this withsomething like iota(0, 10, 0.05).map!(x => sqrt(x) / (1 +sin(x)^^2)) and then plot that.For this part ggplotd does have a helper function: http://blackedder.github.io/ggplotd/ggplotd/stat.html#statFunction auto gg = statFunction(x => sqrt(x) / (1 + sin(x)^^2), 0.0, 10).geomLine().putIn(GGPlotD()); But I assumed he meant adding the formula onto the plot.

`Hah, yes, I should have read the question better. Do you support`

`embedding outside images? When I wanted nice mathematical`

`notation generated quickly in D I have used pyd to call`

`matplotlib's builtin math rendering (much quicker than a full`

`latex roundtrip).`