Ask Your Question

sswatson's profile - activity

2017-10-11 06:15:19 +0200 received badge  Notable Question (source)
2017-05-09 08:58:34 +0200 received badge  Popular Question (source)
2016-09-02 16:17:40 +0200 received badge  Famous Question (source)
2015-12-18 03:09:09 +0200 commented question Kernel dies with matplotlib usetex and PDF

OK, I upgraded to version 6.9 and everything works fine. Thanks!

2015-12-16 22:30:25 +0200 commented question Kernel dies with matplotlib usetex and PDF

Thanks for the reply! It's good to know this problem is not universal. I'm using Sage 6.8, installed on OS X (10.10.5) using binaries (not sure which ones -- I went to the downloads page and did what seemed natural; not sure if that helps). I was using Jupyter notebook, but I just checked that the error also occurs in the Sage notebook. I get no error message in Jupyter (kernel just dies), but in the Sage notebook I get a generic 'Unhandled SIGABRT' message.

2015-12-16 07:13:26 +0200 asked a question Kernel dies with matplotlib usetex and PDF

I'm looking to save my Sage figures with matplotlib's usetex option, so that I can match the fonts to my document's fonts. The following code works to do this if I switch the filename extension in the last line to png, but for some reason when I try to save a pdf instead, the kernel dies. I would be grateful for any suggestions.

from matplotlib import rc

rc('text',usetex=True)

rc('font',serif='Palatino')

p = plot(sin(x),x,0,2*pi,axes_labels=['$x$','$\sin x$'])

save(p,filename="tmp.pdf")

2015-08-27 09:55:37 +0200 received badge  Notable Question (source)
2015-05-19 16:57:26 +0200 received badge  Popular Question (source)
2014-08-26 22:02:11 +0200 received badge  Good Question (source)
2014-02-05 11:24:24 +0200 received badge  Nice Question (source)
2014-02-04 15:58:20 +0200 commented answer In-line graphics for Sage in ipython notebook?

Thanks for the link. I put the suggested lines in my init file, but they only apply to figures generated through matplotlib (not plots generated using the Sage plot command).

2014-02-04 10:25:27 +0200 received badge  Student (source)
2014-02-04 10:20:55 +0200 asked a question In-line graphics for Sage in ipython notebook?

I am running Sage on a local machine (OS X Mavericks) from an ipython notebook. Everything works fine except that I don't have pretty printing or in-line graphics (2D or 3D) -- the graphics launch in Preview.app. Is it possible to obtain either of these features in the ipython notebook interface?