Draw math formulas with ggplotd
Edwin van Leeuwen via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Sep 17 05:09:04 PDT 2016
On Saturday, 17 September 2016 at 11:57:17 UTC, John Colvin wrote:
> On Saturday, 17 September 2016 at 11:45:07 UTC, Edwin van
> Leeuwen wrote:
>> But I assumed he meant adding the formula onto the plot.
>
> Hah, yes, I should have read the question better.
Rereading the question I am actually not sure which of us
interpreted the question correctly :)
> 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).
You can draw onto any cairo surface, so this should be possible.
You'd just need to figure out how to cast/convert a matplotlib
image to a cairo image.
More information about the Digitalmars-d-learn
mailing list