SourceForge logo
SourceForge logo
Menu

Re: [matplotlib-devel] corner artifacts

From: Fernando P. <fpe...@gm...> - 2007年05月23日 20:46:04
On 5/23/07, John Hunter <jd...@gm...> wrote:
> I seem to be getting some corner artifacts when using *Agg that I
> haven't seen before. Anyone else seeing something strange and any
> idea why?
Glad you wrote this, I was about to. I noticed them only recently,
and they're driving me nuts. They aren't just corners, they have to
do with the overlap of two lines and Agg messing something up when
thick lines overlap.
Here's an example that illustrates it more easily (that's how I ran into it):
import numpy as N
from pylab import figure, show
t = N.linspace(-1.0, 1.0, 2001)
s = N.exp(-300*N.abs(t))
fig = figure()
ax = fig.add_subplot(111)
ax.plot(t, s, '-', lw=2)
show()
###
Plot this, then click on the little zoom tool (the cross) and do a
horizontal right-mouse motion to widen/tighten the exponential.
You'll see the white artifact move across the region of overlap of the
vertical lines.
Fortunately for me, the generated EPS don't have the problem (it's a
pure Agg bug), so I'm OK for the final output. But it's really
annoying on screen. My plots have tons of nearly retracing lines on
them, and they look atrociously bad now.
Cheers,
f

View entire thread

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /