hatch does not work with zoom

Hi,

I notice hatch is not drawn correctly when I zoom in axes.

#!/usr/bin/env python
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle

axes = plt.subplot(111)
axes.add_patch(Rectangle((0, 0), 1, 1, fill=False, hatch="/"))
plt.show()

Is there a way to fix it ?

Regards,

Yann

Thanks. This is definitely a bug. I just fixed it in SVN r7858.

Unfortunately, this requires a recompile. You can build from SVN, or download the 0.99.1 tarball and manually apply the above patch.

Mike

Yann Goudard wrote:

···

Hi,

I notice hatch is not drawn correctly when I zoom in axes.

#!/usr/bin/env python
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle

axes = plt.subplot(111)
axes.add_patch(Rectangle((0, 0), 1, 1, fill=False, hatch="/"))
plt.show()

Is there a way to fix it ?

Regards,

Yann

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options
  
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

I applied the patch to the tarball and built. It works perfectly.
Your responsiveness is very impressive.
Thanks,

Yann

···

On 10/09/2009 05:27 PM, Michael Droettboom wrote:

Thanks. This is definitely a bug. I just fixed it in SVN r7858.

matplotlib download | SourceForge.net

Unfortunately, this requires a recompile. You can build from SVN, or download the 0.99.1 tarball and manually apply the above patch.

Mike

Yann Goudard wrote:

Hi,

I notice hatch is not drawn correctly when I zoom in axes.

#!/usr/bin/env python
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle

axes = plt.subplot(111)
axes.add_patch(Rectangle((0, 0), 1, 1, fill=False, hatch="/"))
plt.show()

Is there a way to fix it ?

Regards,

Yann

------------------------------------------------------------------------------

Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options