From: Darren D. <dd...@co...> - 2005-02-22 20:41:36
|
On Tuesday 22 February 2005 01:47 pm, John Hunter wrote: > >>>>> "Darren" == Darren Dale <dd...@co...> writes: > > Darren> Hi, I am reporting a minor bug. I noticed that if I change > Darren> the ticklabel size to 10, draw a semilogy plot, and save > Darren> an eps file, that the yticklabels in the eps are badly > Darren> formatted. The exponent runs into the base. > [...] > > The relevant section of code is matplotlib.text.Text._get_layout_super [...] > see if you can find something that works well for a variety of > reasonable font sizes. You might want to make the pad dependent on > the fontsize... The following conditions will work for eps files, however, the labels in the plot on the screen are adversely effected. if size<12: xe = xb+1.3*wb elif size==16: xe = xb+1.175*wb else: xe = xb+1.125*wb ye = yb+0.5*hb Is it possible that the translation to postscript is what needs to be modified? Darren |