Re: [Matplotlib-users] Custom pan button

2008-08-11 Thread Anthony Floyd
On Mon, Aug 11, 2008 at 1:31 PM, Jonathan Helmus <[EMAIL PROTECTED]> wrote: > [snip] > instance...> which I use to add lines, set limits, etc but it doesn't > have any of the pan functions (start_pan, end_pan, etc). > self.canvas.figure.get_axes() (which is what seems to be used in the > Navigati

Re: [Matplotlib-users] Custom pan button

2008-08-11 Thread Jonathan Helmus
Sorry folks, I found my own problem. Looks like the axes pan functions were a recent addition to matplotlib and the version I'm using, 0.91.2, doesn't have these. Time to bug the system admin to update to the 0.98 version. -Jonathan Helmus Jonathan Helmus wrote: > I have been working on a G

Re: [Matplotlib-users] Figure existence test

2008-08-11 Thread John Hunter
On Mon, Aug 11, 2008 at 4:24 PM, nobody <[EMAIL PROTECTED]> wrote: > > Bump... Does no-one have a solution for this? Sorry for not answering. There is no elegant way to do this so we should add support. In the meantime, the following hack should work >>> figs = [manager.canvas.figure for m

Re: [Matplotlib-users] Figure existence test

2008-08-11 Thread nobody
Bump... Does no-one have a solution for this? - I am a BugMeNot account and postings from this user may not always be from the same person. -- View this message in context: http://www.nabble.com/Figure-existence-test-tp18760841p18934165.html Sent from the matplotlib - users mailing list ar

Re: [Matplotlib-users] windrose OO

2008-08-11 Thread John Hunter
On Mon, Aug 11, 2008 at 3:51 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Christopher Barker wrote: >> Is there a guide to translating code from the old to new Transforms >> structure? > Yes, in the API_CHANGES file, in the source distribution. (I'd link to > SVN, but it seems Sourceforge'

Re: [Matplotlib-users] windrose OO

2008-08-11 Thread John Hunter
On Mon, Aug 11, 2008 at 3:51 PM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Christopher Barker wrote: >> Is there a guide to translating code from the old to new Transforms >> structure? > Yes, in the API_CHANGES file, in the source distribution. (I'd link to > SVN, but it seems Sourceforge'

Re: [Matplotlib-users] windrose OO

2008-08-11 Thread Michael Droettboom
Christopher Barker wrote: > Is there a guide to translating code from the old to new Transforms > structure? > Yes, in the API_CHANGES file, in the source distribution. (I'd link to SVN, but it seems Sourceforge's SVN browser is down.) Cheers, Mike ---

Re: [Matplotlib-users] windrose OO

2008-08-11 Thread Christopher Barker
Christopher Barker wrote: > have you ported it over yet? Can anyone else help out with a port? Note: it looks pretty easy, if yu know what you are doing: from matplotlib.transforms import Interval, Value Then in the code, I inly see Interval and Value used here: self.rintv = Interval(V

Re: [Matplotlib-users] ticks & labels

2008-08-11 Thread Jeffrey Fogel
Thanks John, that worked perfectly (with JJ's correction). I'm fairly new to python and hadn't considered writing a separate class for it. -Jeffrey On Mon, Aug 11, 2008 at 3:53 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: > A minor comment. > John's code may give incorrect results when exponents

Re: [Matplotlib-users] windrose OO

2008-08-11 Thread Christopher Barker
Lionel Roubeyrie wrote: find with this message a modified version of windrose to be OO compliant. Lionel, I've had this message of yours (from March), and finally had a chance to use it. Unfortunately, it seems to use the old Transforms mechanism, so won't work with the latest MPL. have

[Matplotlib-users] Custom pan button

2008-08-11 Thread Jonathan Helmus
I have been working on a GUI application which uses matplotlib as a wx object. I'd like to include a pan button on the toolbar of the application but can't seem to get an axes object which has the pan functions (which I'd like to use to tie into the pan code). I have a self.axes object that

Re: [Matplotlib-users] ticks & labels

2008-08-11 Thread Jae-Joon Lee
A minor comment. John's code may give incorrect results when exponents are negative. int() truncates a floating point argument towards zero, e.g., int(-1.5) == -1 not -2. I guess calling floor() before int() will work. fx = int(np.floor(np.log(abs(val))/np.log(self._base) +0.5)) -JJ On

Re: [Matplotlib-users] ticks & labels

2008-08-11 Thread John Hunter
On Mon, Aug 11, 2008 at 1:45 PM, Jeffrey Fogel <[EMAIL PROTECTED]> wrote: > The two things I have been unable to figure out are how to add a major > tick at all of the other magnitudes (those without a label) and how to > change the format of the labels so that only the exponent is showing. > I'm

[Matplotlib-users] ticks & labels

2008-08-11 Thread Jeffrey Fogel
I am having some trouble getting the ticks and labels on my plot to match what I want and I was hoping that someone here would be able to help. Here are what I want (on the yaxis): logarithmic ticks with major ticks every order of magnitude but labels ONLY every other magnitude. Additionally, I

Re: [Matplotlib-users] which basemap with matpotlib 0.91.2

2008-08-11 Thread Jeff Whitaker
Michael Hearne wrote: > Jeff - Well, that's the problem - I _do_ need scipy! Not for > basemap, but for the rest of my application. Does your sourceforge > repository have older copies of the basemap code? Mike: OK, but I don't think upgrading numpy/maplotlib requires you to update scipy.

Re: [Matplotlib-users] which basemap with matpotlib 0.91.2

2008-08-11 Thread Michael Hearne
Jeff - Well, that's the problem - I _do_ need scipy! Not for basemap, but for the rest of my application. Does your sourceforge repository have older copies of the basemap code? My complaint about scipy has to do with the fact that I spent a good week trying to get scipy's dependencies to i

Re: [Matplotlib-users] which basemap with matpotlib 0.91.2

2008-08-11 Thread Jeff Whitaker
Michael Hearne wrote: > I'm trying to build an application on a newly installed Ubuntu. I've > used apt-get to install scipy and matplotlib. > > numpy version: 1.0.4 > scipy version: 0.6 > matplotlib version: 0.91.2 > > What version of basemap is safe to download and build with this > configurat

[Matplotlib-users] which basemap with matpotlib 0.91.2

2008-08-11 Thread Michael Hearne
I'm trying to build an application on a newly installed Ubuntu. I've used apt-get to install scipy and matplotlib. numpy version: 1.0.4 scipy version: 0.6 matplotlib version: 0.91.2 What version of basemap is safe to download and build with this configuration? Doing "apt-cache search basemap"

[Matplotlib-users] problems with labeling contour lines - 2nd try

2008-08-11 Thread Mark Bakker
Hello - I have two problems labeling contour lines in 0.98.3. First, when I call clabel, it removes all contours that are not labeled (because the label doesn't fit on the section of contour, I presume). This seems like a bug to me (or a really odd feature). Easy example: >>> x,y = meshgrid( lins

Re: [Matplotlib-users] SVG and pdf

2008-08-11 Thread Kaushik Ghose
Hi Mike, > Sounds like a Inkscape/Cairo issue to me, if the PDF it converts doesn't > match the SVG. That said, SVG is tricky to get right, and we may be > able to produce things in a different way that Inkscape will handle > correctly. I'll look into this and file a bug with Inkscape and/or

Re: [Matplotlib-users] SVG and pdf

2008-08-11 Thread Michael Droettboom
Sounds like a Inkscape/Cairo issue to me, if the PDF it converts doesn't match the SVG. That said, SVG is tricky to get right, and we may be able to produce things in a different way that Inkscape will handle correctly. I'll look into this and file a bug with Inkscape and/or Cairo if it turns

[Matplotlib-users] SVG and pdf

2008-08-11 Thread Kaushik Ghose
Hi! This may be a pdf issue or an SVG issue and have nothing to do with matplotlib. If so, sorry... Whenever I produce a figure with matplotlib and 'crop it' using the axis command the svg comes out fine. However, when I save this svg to pdf using inkscape's 'cairo' backend the part of the da

[Matplotlib-users] SVG and pdf

2008-08-11 Thread Kaushik Ghose
Hi! This may be a pdf issue or an SVG issue and have nothing to do with matplotlib. If so, sorry... Whenever I produce a figure with matplotlib and 'crop it' using the axis command the svg comes out fine. However, when I save this svg to pdf using inkscape's 'cairo' backend the part of the data t

Re: [Matplotlib-users] colorbar() fix limit on Heat map

2008-08-11 Thread John Hunter
On Mon, Aug 11, 2008 at 8:31 AM, Jeff Whitaker <[EMAIL PROTECTED]> wrote: > Have you checked out the pylab examples? For me, they are the best way > to learn how to use matplotlib effectively. In particular: [EMAIL PROTECTED]:examples> find . -name "*.py"|xargs grep -il colorbar ./animation/dyn

Re: [Matplotlib-users] colorbar() fix limit on Heat map

2008-08-11 Thread Jeff Whitaker
stuartornum wrote: > Jeff, > > That worked perfectly ! Thank you. > > One more question... how would I change the colour scheme of the colorbar()? > > Thanks again > Stuart: Use the cmap argument to specify a color map. Have you checked out the pylab examples? For me, they are the best way t

Re: [Matplotlib-users] colorbar() fix limit on Heat map

2008-08-11 Thread stuartornum
Jeff, That worked perfectly ! Thank you. One more question... how would I change the colour scheme of the colorbar()? Thanks again -- View this message in context: http://www.nabble.com/colorbar%28%29-fix-limit-on-Heat-map-tp18923300p18925645.html Sent from the matplotlib - users mailing list

Re: [Matplotlib-users] colorbar() fix limit on Heat map

2008-08-11 Thread Jeff Whitaker
stuartornum wrote: > Hi All, > > You may remember from my previous post I was having problems plotting a > heatmap, however Pete came through for me and made it work. > > Anyway, I have almost finished what I want to do. The only issue is fixing > the colorbar() range limit. > > Sometimes the my va

[Matplotlib-users] colorbar() fix limit on Heat map

2008-08-11 Thread stuartornum
Hi All, You may remember from my previous post I was having problems plotting a heatmap, however Pete came through for me and made it work. Anyway, I have almost finished what I want to do. The only issue is fixing the colorbar() range limit. Sometimes the my values are 0.01 to 0.2 for example,