Re: [O] Add caption to babel-generated images

2016-08-30 Thread Florian Lindner
Am 30.08.2016 um 13:54 schrieb Florian Lindner: > Am 30.08.2016 um 13:04 schrieb Georgiy Tugai: >> I don't know if it'll work for Python, but here's an example of what >> works for me with Ditaa: >> >>> #+BEGIN_SRC ditaa :file figs/-mininet-ovsk.png :cache yes >>>/+ /+ /+ /+ >>>

Re: [O] Add caption to babel-generated images

2016-08-30 Thread Nicolas Goaziou
Hello, Georgiy Tugai writes: > I don't know if it'll work for Python, but here's an example of what > works for me with Ditaa: > >> #+BEGIN_SRC ditaa :file figs/-mininet-ovsk.png :cache yes >>/+ /+ /+ /+ >>|host| |host| |host| |host| Containers >>+-+--/ +-+--/ +

Re: [O] Add caption to babel-generated images

2016-08-30 Thread Florian Lindner
Am 30.08.2016 um 13:04 schrieb Georgiy Tugai: > I don't know if it'll work for Python, but here's an example of what > works for me with Ditaa: > >> #+BEGIN_SRC ditaa :file figs/-mininet-ovsk.png :cache yes >>/+ /+ /+ /+ >>|host| |host| |host| |host| Containers >>

Re: [O] Add caption to babel-generated images

2016-08-30 Thread Florian Lindner
Am 30.08.2016 um 12:11 schrieb Nicolas Goaziou: > Hello, > > Florian Lindner writes: > >> I have this code block: >> [...] >> When exporting to latex it nicely compiles into >> \includegraphics[width=.9\linewidth]{rbf-gaussian-4.pdf}. >> >> Now I want to have this \includegraphics in a figure

Re: [O] Add caption to babel-generated images

2016-08-30 Thread Georgiy Tugai
I don't know if it'll work for Python, but here's an example of what works for me with Ditaa: > #+BEGIN_SRC ditaa :file figs/-mininet-ovsk.png :cache yes >/+ /+ /+ /+ >|host| |host| |host| |host| Containers >+-+--/ +-+--/ +--+-/ +--+-/ > | | |

Re: [O] Add caption to babel-generated images

2016-08-30 Thread Nicolas Goaziou
Hello, Florian Lindner writes: > I have this code block: > > #+BEGIN_SRC python :exports results :results file > import matplotlib.pyplot as plt, numpy as np > x = np.linspace(-2, 2, 1000) > plt.plot(x, np.exp(-np.power(4*x, 2)), label="shape-parameter=4") > for i in range(-4, 5): plt.ax