[Matplotlib-users] errorbar patch

2008-05-06 Thread Christopher Brown
Hi List, I find the attached patch useful. It adds an argument (elinewidth) to the errorbar function which is a linewidth analog to the ecolor argument. It allows you to specify a linewidth for the errorbars, so that it can be different from the plot linewidth. This is useful to me because I

[Matplotlib-users] MPL, py2exe and fonts

2008-05-06 Thread Chris Barker
Hi all, I'm successfully getting all the MPL data files into spy2exe with: DATA_FILES = matplotlib.get_py2exe_datafiles() The problem is that that dumps a LOT of stuff, and I don't need most of it. I've already added to my script a few lines that delete the "images" dir, but I'd like to trim d

Re: [Matplotlib-users] markeredgewidth and pdf

2008-05-06 Thread Christopher Brown
Hi Mike, Your test pdf shows up properly in Foxit. MD> So --- this would appear to be a bug in Foxit. Perhaps you could MD> submit this problematic PDF to them. I will do so, and I'll also include your description of the problem. -- Chris --

Re: [Matplotlib-users] bug in qtagg backend when blitting

2008-05-06 Thread Michael Droettboom
Thanks. Try again now. Hopefully it's correct this time (your test is a much better unit test than the animation_blit_* examples. Cheers, Mike Darren Dale wrote: > I'm testing it out on 64-bit linux with this script: > > from pylab import * > from matplotlib.widgets import Cursor > > ax=axes()

Re: [Matplotlib-users] Canvas coordinates vs. Plot coordinates

2008-05-06 Thread John Hunter
On Tue, May 6, 2008 at 11:17 AM, Matthew Czesarski <[EMAIL PROTECTED]> wrote: > So I'm pretty successful so far. The only problem is that the coordinates > are in canvas coordinates, not plot coordinates. Now, rather embarrassingly, > I can't figure out how to get this right. It seems to be the ca

[Matplotlib-users] Drawing shapes outside the plot area

2008-05-06 Thread Bryan Fodness
I would like to be able to draw a triangle on the graph outside the axes and plot area. I have used fill before, but that was in the plot area. Can someone push me in the right direction? -- "The game of science can accurately be described as a never-ending insult to human intelligence." - João

Re: [Matplotlib-users] errorbar plot caps

2008-05-06 Thread Michael Droettboom
That's a good one! Here's what I see happening: By default (without manually specifying zorder), all Collections are drawn before all Lines. In an errorbar, the data itself and the caps are both drawn using Lines, but the errorbar is drawn using a LineCollection. So what you're seeing is a s

Re: [Matplotlib-users] markeredgewidth and pdf

2008-05-06 Thread Michael Droettboom
In matplotlib's Python PDF backend, each marker type is stored in an XObject (a reusable object) only once, and referenced to draw each to the screen. The Cairo backend does not have this optimization and draws each marker independently. It would seem that Foxit does not use the current graphic

[Matplotlib-users] errorbar plot caps

2008-05-06 Thread Christopher Brown
Hi mpl users, I have noticed that when making a figure using the errorbar function, a cap line will show up over a marker if they happen to fall on top of one another. The line connecting the caps is (properly) hidden under the marker. This behavior only occurs if the overlapping marker was pla

[Matplotlib-users] Canvas coordinates vs. Plot coordinates

2008-05-06 Thread Matthew Czesarski
Dear Group, What I need to do is to 1. produce a plot (DONE) 2. fix it so that mouse clicks in the canvas append the x coordinate of the click to a list (DONE) 3. add a couple of buttons to the GUI, to reset the list and to kill the window (DONE) So I'm pretty successful so far. The only problem

[Matplotlib-users] minorLocator

2008-05-06 Thread Yves Revaz
Hi all, How is it possible to display by default the minor ticks with an interval 5 times smaller than the major ticks. I can do that for a known range of data : for example : ax = pt.gca() ax.xaxis.set_major_locator(MultipleLocator(10)) ax.xaxis.set_minor_locator(MultipleLocator(10/5.)) but

Re: [Matplotlib-users] markeredgewidth and pdf

2008-05-06 Thread Christopher Brown
Hi Michael, MD> I can't be of much help with Windows builds, unfortunately. MD> However, for clarification, is this error from building pycairo or MD> matplotlib? matplotlib *should* be able to bypass pkg-config if it MD> isn't available. The error occurred while building pycairo. MD> > will

Re: [Matplotlib-users] bug in qtagg backend when blitting

2008-05-06 Thread Michael Droettboom
This is now implemented on the branch and the trunk. Please let me know how it works for you. I'm particularly interested in non-Linux and Big Endian platforms (e.g. PPC) as a sanity check. Cheers, Mike Michael Droettboom wrote: > I'll go ahead and fix this. It just fell through the cracks.

Re: [Matplotlib-users] minor ticks

2008-05-06 Thread John Hunter
On Tue, May 6, 2008 at 9:33 AM, Fabrice Silva <[EMAIL PROTECTED]> wrote: > Contrary to what the on-line doc says, the set_xticks method of an axes > instance does not have the 'minor' keyword argument... > > >S1.set_xticks(Xticksm, minor=True) > TypeError: set_xticks() got an unexpected keywo

[Matplotlib-users] minor ticks

2008-05-06 Thread Fabrice Silva
Contrary to what the on-line doc says, the set_xticks method of an axes instance does not have the 'minor' keyword argument... S1.set_xticks(Xticksm, minor=True) TypeError: set_xticks() got an unexpected keyword argument 'minor' __version__ = '0.90.1' __revision__ = '$Revision: $' __da

Re: [Matplotlib-users] bug in qtagg backend when blitting

2008-05-06 Thread Michael Droettboom
I'll go ahead and fix this. It just fell through the cracks. Mike Darren Dale wrote: > On Monday 05 May 2008 09:24:42 pm G Jones wrote: > >> Hello, >> Attached is a script that when run from ipython --pylab with your >> backend setup for 'QtAgg' reproduces a bug I am seeing. If you run the >>

Re: [Matplotlib-users] bug in qtagg backend when blitting

2008-05-06 Thread Darren Dale
On Monday 05 May 2008 09:24:42 pm G Jones wrote: > Hello, > Attached is a script that when run from ipython --pylab with your > backend setup for 'QtAgg' reproduces a bug I am seeing. If you run the > plot, you'll see a line plotted in blue as expected. Then when the > same figure is updated by bli

Re: [Matplotlib-users] markeredgewidth and pdf

2008-05-06 Thread Michael Droettboom
Christopher Brown wrote: > Hi Mike, > > MD> It's worth noting -- these viewer differences do pop up from time to > MD> time. Since I don't have Foxit (or Windows) installed, I wonder if > MD> you could run an experiment. If you generate the PDF with mpl's > MD> Cairo backend, do you see the sa