Hi-- I've been making a bunch of plots these days, some of them using matplotlib. I've noticed two strange glitches when making eps files with it. In both cases, the plots are made just fine, the eps files look good when you open them with gv/preview. But when you try to make them into a latex document, the document builds fine, but dvipdf hangs indefinitely. First, if you make a histogram with fill=False and linestyle='dashed' The second is if you try to include long text in a subscript in a caption. So I had plt.scatter(stuff, label='\rho_{truelove}') and it caused problems. I haven't sorted it out, but I figure most of y'all will be using matplot lib to put things into tex at some point. d.
Hi Dave,
I've noticed two strange glitches when making eps files with it.
Usually I make pdf files to include in my docs... :(
So I had plt.scatter(stuff, label='\rho_{truelove}')
and it caused problems.
what about: plt.scatter(stuff, label=r"$\rho_{\mathrm{truelove}}$") ?
I haven't sorted it out, but I figure most of y'all will be using matplot lib to put things into tex at some point.
Thanks! Which version of matplotlib are you using, by the way? There were major changes between 0.91 and 0.98. If this gets to be too much of an issue, it might be worthwhile to bring it to the matplotlib-user mailing list. -Matt
plt.scatter(stuff, label=r"$\rho_{\mathrm{truelove}}$")
Don't know. I did have the '$' initially, but not the mathrm. I'll look into it when I have a minute.
were major changes between 0.91 and 0.98. If this gets to be too much
I'm on 0.98.5.2. If it gets in my way any more than it has, I'll send it to the mpl usr list. d.
of an issue, it might be worthwhile to bring it to the matplotlib-user mailing list.
-Matt _______________________________________________ Yt-dev mailing list Yt-dev@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
participants (2)
-
david collins
-
Matthew Turk