mailing-list for TeXmacs Users

Text archives Help


Re: [TeXmacs] Inline Matplotlib figures


Chronological Thread 
  • From: François Beaubert <address@hidden>
  • To: address@hidden
  • Subject: Re: [TeXmacs] Inline Matplotlib figures
  • Date: Fri, 16 Dec 2011 10:30:55 +0100



2011/12/16 chu-ching huang <address@hidden>

python TeXmacs-plugin avails the function "ps_out()" to print out inline eps
picture; you can make inline picture as follows:

----------------------------------
import pylab

"""
making picture
"""

pylab.savefig('demo.eps')
ps_out('demo.eps')
-----------------------------------

Here, you can find more examples about using Python within TeXmacs in the
article, 20081115.pdf:

http://diffusion.cgu.edu.tw/ftp/TeXmacs/demo

Best wishes,

cch

Thank you very much for for helpful answer !
You made my day :)

Do you know if it's possible to use it like a script (not in a python session) as Asymptote, Gnuplot, R ... without explicitly specifying the name of the ps_out file ?

Thanks again.
Cheers
Francois





Archive powered by MHonArc 2.6.19.

Top of page