Re: [O] change font-size in python plots depending on context

2019-08-20 Thread johanna . may
Hi there, thanks to Thomas and Eric. I actually found a rather stupid mistake: I was already using a var (for the png filename generation) and the header did not read the next :var. So I added ,fs=fontsize to the first :var and now it works. I will have a look Eric's function of how to get the

Re: [O] change font-size in python plots depending on context

2019-08-19 Thread Thomas S. Dye
Aloha Johanna May, This works: #+name: fs #+BEGIN_SRC emacs-lisp 10 #+END_SRC #+RESULTS: fs : 10 #+header: :var fontsize=fs() :results output #+begin_src python print(fontsize) #+end_src #+RESULTS: : 10 Note "fs()" instead of "fs". All the best, Tom -- Thomas S. Dye

Re: [O] change font-size in python plots depending on context

2019-08-19 Thread Fraga, Eric
Hi Johanna, > I have various files that go together in one document, either > chapterwise or the whole book. And just as with tikz (latex) I want the font > size of python plots to change automatically when the context changes. What I do, for a similar use case, is to define values using

[O] change font-size in python plots depending on context

2019-08-19 Thread johanna . may
Dear org-mode fans, I have various files that go together in one document, either chapterwise or the whole book. And just as with tikz (latex) I want the font size of python plots to change automatically when the context changes. So I tried to define a variable in one of the header files like