[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] create vector-graphics with org-babel
From: |
Suvayu Ali |
Subject: |
Re: [O] create vector-graphics with org-babel |
Date: |
Mon, 14 Sep 2015 19:12:03 +0200 |
User-agent: |
Mutt/1.5.23.1 (2014-03-12) |
On Wed, Sep 09, 2015 at 09:50:58AM +0200, Max Linke wrote:
> Hi
>
> I'm trying to use vector graphics in my org document
>
> #+BEGIN_SRC ipython :session :file iso.svg :exports results
> x = np.linspace(0, 10, 100)
> y = np.sin(x)
> plt.plot(x, y)
> #+END_SRC
>
> I can run this cell with 'C-c C-c' but I can't export it to latex
> because it says that svg is currently not supported. Is there a way
> to include svg (or another type of vector graphics) export into my
> document.
If you want vector graphics, but do not care about the specific type of
vector graphics, you can always use pdf. IIUC, you are using
matplotlib. So pdfs are supported, just configure PdfPages from
matplotlib.backends.backend_pdf.
Cheers,
--
Suvayu
Open source is the future. It sets us free.