Skip to Content.
Sympa Menu

texmacs-users - Re: shortcut for tables..

Subject: mailing-list for TeXmacs Users

List archive

Re: shortcut for tables..


Chronological Thread 
  • From: Giovanni Piredda <address@hidden>
  • To: address@hidden
  • Subject: Re: shortcut for tables..
  • Date: Wed, 16 Dec 2020 14:06:49 +0100


On 10.12.20 01:37, Giovanni Piredda wrote:


Am 09.12.2020 um 23:30 schrieb Massimiliano Gubinelli:
Dear Vincent,

On 9. Dec 2020, at 23:03, Vincent Douce Mathoscope <address@hidden <mailto:address@hidden>> wrote:

i take the occasion of speaking programmation of this thread to ask (maybe i should open a new thread ?) if anyone has made a video explaining step by step how you can execute a python/matplotlib program inside TeXmacs. i mean, can i open a python session and call the .py file i have written before ?


I'm not sure what you mean. You can open a Python shell, which will give you a prompt. There you can load a script in any way python allows you. I do not know the language well, sorry. Maybe look here:

https://stackoverflow.com/questions/5280178/how-do-i-load-a-file-into-the-python-console <https://stackoverflow.com/questions/5280178/how-do-i-load-a-file-into-the-python-console>

in order to have graphics embedded in your document, you have to tell to matplot lib to produce a ps or pdf.

Running Python scripts that generate matplotlib figures opens the figure in a separate window on Windows. As far as I remember, in Linux as well.

This means that at least for the moment in order to have figures generated with matplotlib in a TeXmacs document, one needs to save them to file, then display them (by linking or copying).


I have to correct myself, I had not understood Max's statement "in order to have graphics embedded in your document, you have to tell to matplot lib to produce a ps or pdf. ".

The commands to get the image embedded in the document are pdf_out(plt.gcf()) and ps_out(plt.gcf()), while plt.show() will show the figure in its own window.





Archive powered by MHonArc 2.6.19.

Top of Page