Hi,
I ran into a bug where I get the LaTeX error:
RuntimeError: LaTeX was not able to process the following string:
''
I know it's an uncommon plot, but I need extra (non-uniform) tick labels
at the top so I'm using SubplotHost, on a semilog plot with usetex (so
the fonts look similar to
I cannot reproduce this error.
I'm using r8330 on Linux.
I guess the error does not occur when you use a normal subplot?
Just in case, replace axes_grid with axes_grid1 and see if it makes
any difference, i.e.,
from mpl_toolkits.axes_grid1.parasite_axes import SubplotHost
Regards,
-JJ
On
The following patch avoids the error with your attached plot. I'm sure
if it the right fix though -- I'm not sure why empty strings are being
sent this far along, and I'm also not seeing any ticks along the top.
Mike
Index: lib/matplotlib/texmanager.py
The error may be dependent on the version of latex being used. Yours
may be handling the empty content just fine. (I'm using TexLive 2009 on
RHEL5).
Mike
On 05/20/2010 02:34 PM, Jae-Joon Lee wrote:
I cannot reproduce this error.
I'm using r8330 on Linux.
I guess the error does not occur
It turns out that when axes_grid toolkit is used and there are some
ticks does not have associated ticklabels (i.e., minor ticks), it
tries to call the get_texts_widths_heights_descents method with
empty string.
The following patch prevent this.
--- a/lib/mpl_toolkits/axisartist/axis_artist.py
Jae-Joon Lee wrote:
I cannot reproduce this error.
I'm using r8330 on Linux.
I guess the error does not occur when you use a normal subplot?
Just in case, replace axes_grid with axes_grid1 and see if it makes
any difference, i.e.,
from mpl_toolkits.axes_grid1.parasite_axes import