From: Jae-Joon L. <lee...@gm...> - 2010-05-20 18:35:17
|
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 Thu, May 20, 2010 at 2:11 PM, João Luís Silva <js...@fc...> wrote: > 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 the ones on the paper). > > Matplotlib svn r8330 on Ubuntu 9.10. > > Regards, > João Silva > > Example script: ------------------------------------- > > 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() > > ------------------------------------- > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |