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 =================================================================== --- lib/matplotlib/texmanager.py (revision 8329) +++ lib/matplotlib/texmanager.py (working copy) @@ -578,6 +578,9 @@ return width, heigth and descent of the text. """ + if tex.strip() == '': + return 0, 0, 0 + if renderer: dpi_fraction = renderer.points_to_pixels(1.) else: On 05/20/2010 02:11 PM, João Luís Silva wrote: > from matplotlib import rc > rc('text', usetex=True) > > from mpl_toolkits.axes_grid.parasite_axes import SubplotHost > import numpy as np > import matplotlib.pyplot as plt > > fig = plt.figure(1) > ax = SubplotHost(fig, 111) > fig.add_subplot(ax) > x = np.arange(1.0,10.0,0.1) > ax.semilogy(x,x**2) > plt.show() > -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA ------------------------------------------------------------------------------ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users