[Matplotlib-users] small bug in Axes.add_artist method

2009-10-19 Thread Yann Goudard
Hi, I found a small bug in matplotlib.axes.Axes.add_artist method. matplotlib.artist.Artist.set_axes method is called twice. def add_artist(self, a): ''' Add any :class:`~matplotlib.artist.Artist` to the axes. Returns the artist. ''' * a.set_axes(sel

Re: [Matplotlib-users] hatch does not work with zoom

2009-10-09 Thread Yann Goudard
atplotlib?view=rev&revision=7858 > > > > 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

[Matplotlib-users] hatch does not work with zoom

2009-10-09 Thread Yann Goudard
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, Y

[Matplotlib-users] Text backgroundcolor and edgecolor

2009-10-09 Thread Yann Goudard
Hi, I found strange behavior in matplotlib.text.Text. set_backgroundcolor(self, color) allows to init text background and edge colors but we can only alter backgroundcolor. # line 728 def set_backgroundcolor(self, color): """ Set the background color of the text by updating th

Re: [Matplotlib-users] grid on log-plots

2009-09-08 Thread Yann Goudard
Hi, I have the same behaviour with LocatableAxes. HostAxes, ParasiteAxes and LocatableAxes depend on 'mpl_toolkits.axes_grid.axislines.Axes'. It must be the matter origin. This another example should draw a grid but does not: import wx from wx import Frame from matplotlib.backends.backend_wxagg