Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Considering that typeset isn't even listed as a supported option at http://doc.sagemath.org/html/en/reference/plotting/sage/plot/text.html#sage.plot.text.text it's not surprising it doesn't behave as you wish. In particular, we don't require LaTeX as a system dependency (though it is recommended) so we couldn't necessarily support that out of the box for all, though we do have optional doctests and if it were fixed that could be added.

If you know enough matplotlib to mess with it, then see https://github.com/sagemath/sage/blob/master/src/sage/plot/text.py#L211 and hopefully there might be a way to deal with this in a fashion that "fixes" everything. My guess is that it's a combination of the bounding box options and the clip option, though setting that to True didn't seem to make a difference. My experience does say that a lot of these other options are hard to mix without going directly to matplotlib. Possibly see also Trac 15870.

Considering that typeset isn't even listed as a supported option at http://doc.sagemath.org/html/en/reference/plotting/sage/plot/text.html#sage.plot.text.text it's not surprising it doesn't behave as you wish. In particular, we don't require LaTeX as a system dependency (though it is recommended) so we couldn't necessarily support that out of the box for all, though we do have optional doctests and if it were fixed that could be added.

If you know enough matplotlib to mess with it, then see https://github.com/sagemath/sage/blob/master/src/sage/plot/text.py#L211 and hopefully there might be a way to deal with this in a fashion that "fixes" everything. My guess is that it's a combination of the bounding box options and the clip option, though setting that to True didn't seem to make a difference. My experience does say that a lot of these other options are hard to mix without going directly to matplotlib. Possibly see also Trac 15870.

Edit: This is now Trac 23293.