venerdì 14 dicembre 2012

How to incorporate plots in python shell

With IPythonQt is possible to have plots directly inside the shell.

This is the command and the proper flags:
ipython qtconsole --pylab=inline








lunedì 3 dicembre 2012

Fonts missing in latex plots

In Ubuntu 12.10 (and possibly also other linux distributions), plots included into latex documents may not have fonts displayed correctly.
The problem seems to be due to some conflict in font settings.
To solve this, just use the flag -j0 in dvips. In the following the correct compiling procedure:

latex file.tex
dvips -j0 file.dvi
ps2pdf file.ps