On Saturday, 17 September 2016 at 11:45:07 UTC, Edwin van Leeuwen
On Saturday, 17 September 2016 at 11:22:04 UTC, John Colvin
On Saturday, 17 September 2016 at 02:41:15 UTC, brocolis wrote:
How do I draw math formulas programmatically? I want to do on
screen what latex does on .pdf.
And I want to draw a math formula in the image generated with
Generate data from those formulas (I like to do this with
something 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:
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