Incanter charts can be saved as PNG files using the
save function, but I had a request earlier today to add the ability to save them as PDF documents.
So I’ve created a new function called
save-pdf in a new package called
Here’s a basic example.
(use '(incanter core charts pdf)) (save-pdf (function-plot sin -4 4) "./pdf-chart.pdf")
Which outputs the following PDF file.