Rotation kills anti-aliasing?

Folks,

I'm trying to make a simple plot where the xtick labels are rotated by
45 degrees. The rotation works fine, but it destroys the anti aliasing
of the labels. The rest of the plot renders just fine. I'm using the
PS backend (savefig to an EPS). Something like this:

labels = ["one", "two", "three"]
xticks(arange(len(labels)), labels, rotation="45")

Is this a known issue? Any work arounds?

Thanks,
Diwaker

···

--
http://floatingsun.net/

Diwaker Gupta wrote:

Folks,

I'm trying to make a simple plot where the xtick labels are rotated by
45 degrees. The rotation works fine, but it destroys the anti aliasing
of the labels. The rest of the plot renders just fine. I'm using the
PS backend (savefig to an EPS). Something like this:

labels = ["one", "two", "three"]
xticks(arange(len(labels)), labels, rotation="45")

Is this a known issue? Any work arounds?

Thanks,
Diwaker

If your output is Postscript, then the antialiasing of text is being done (or not done) by whatever is rendering your .ps file, not by mpl. So there is nothing mpl can do about it.

Eric

Eric Firing wrote:

Diwaker Gupta wrote:
  

Folks,

I'm trying to make a simple plot where the xtick labels are rotated by
45 degrees. The rotation works fine, but it destroys the anti aliasing
of the labels. The rest of the plot renders just fine. I'm using the
PS backend (savefig to an EPS). Something like this:

labels = ["one", "two", "three"]
xticks(arange(len(labels)), labels, rotation="45")

Is this a known issue? Any work arounds?

Thanks,
Diwaker
    
If your output is Postscript, then the antialiasing of text is being done (or not done) by whatever is rendering your .ps file, not by mpl. So there is nothing mpl can do about it.
  

Try different Postscript viewers available on your platform -- it's possible one of them may produce better results. And, of course, the most important thing with Postscript is how it renders on your printer. If you're still seeing non-antialised fonts in everything, please attach the .eps file to this list and I'll have a look at it for anything strange.

Cheers,
Mike

···

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

I tried several different viewers (gv, kghostview etc), but all of
them seem to have the same problem. What is strange is that all other
text on the graph seems to render fine. I'm attaching the EPS for
reference.

Diwaker

patching-offline-analysis.eps (36.3 KB)

···

On Mon, May 5, 2008 at 5:15 AM, Michael Droettboom <mdroe@...86...> wrote:

Try different Postscript viewers available on your platform -- it's
possible one of them may produce better results. And, of course, the most
important thing with Postscript is how it renders on your printer. If
you're still seeing non-antialised fonts in everything, please attach the
.eps file to this list and I'll have a look at it for anything strange.

--
http://floatingsun.net/

I suspect gv and kghostview are using the same rendering engine, so
these are probably not separate trials. I see the same thing on gv on
my system, but when I zoom in the problem disappears. Thus it looks
like a problem with the gv downsampling algorithm, at least in my
version. It doesn't appear to have anything to do with mpl.

JDH

···

On Mon, May 5, 2008 at 12:29 PM, Diwaker Gupta <diwaker.lists@...287...> wrote:

I tried several different viewers (gv, kghostview etc), but all of
them seem to have the same problem. What is strange is that all other
text on the graph seems to render fine. I'm attaching the EPS for
reference.