0

Is there a way to turn a matplotlib.pyplot plot into a Flowable object within reportlab so that I can render it within a pdf?

My question is very similar to the question asked here. However, I am limited because I am working on a system where I can only use a certain set of libraries. These are:

  • The libraries installed with Anaconda 2
  • reportlab

Is this possible with the set of packages that I have?

EDIT: I would like to avoid saving the plot as a png

Paul Terwilliger
  • 1,596
  • 1
  • 20
  • 45
  • Possibly relevant: https://stackoverflow.com/questions/3448365/pdf-image-in-pdf-document-using-reportlab-python According to one of the answers, the free version of reportlab does not allow to include pdf directly, hence available solutions take the detour using `pdfrw`. – ImportanceOfBeingErnest Mar 01 '18 at 14:56
  • The better solution is of course to use [`svglib`](https://pypi.python.org/pypi/svglib/) as seen in [this question](https://stackoverflow.com/questions/5835795/generating-pdfs-from-svg-input). – ImportanceOfBeingErnest Mar 01 '18 at 15:14

0 Answers0