Re: [Matplotlib-users] Reposition a Legend

2007-07-23 Thread Anthony M. Floyd
Hi Anthony, > legend to be at the same height as the top of the axis. How > do I go about moving the legend once I've created it? myLegend._loc=(x,y) myFigure.draw() There doesn't seem to be a .moveLegend() or equivalent method, so I always update the semi-private ._loc and on redraw. After

[Matplotlib-users] xticklabels: how to position majors on top/north, minors on bottom/south?

2007-07-23 Thread Simon Kammerer
Hi list, how can I position major xticklabels on top of my axes an minor xticklabels on bottom? Example: Datetimes on xaxis, minors = hours, labels as usual below xaxis, majors = days, labels on top of my axes: 23.07 24.07 25.07 26.07 27.07 28.07 ---

[Matplotlib-users] Polar Half-space plot

2007-07-23 Thread Chad Kidder
I've been using matplotlib on OSX a bit and was wondering if anyone had code out there for a polar half-space plot? I created one for matlab a while back and if there is not one for matplotlib, I would be happy to offer up my code as a good beginning. It has a good bit of logic in it to m

Re: [Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Xavier Gnata
If numpy provide us with a distutils version that *works* IMHO matplotlib should just be shipped with. If it is overkill, it could be possible to detect the compiler version and to remove this option if and only if g++ is used. It looks not so clean but cleaner than compiling this an extra option

Re: [Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Matthieu Brucher
Yes, Python is written in C, but it is responsible for providing the good flags so that extensions are compatible with the interpreter (there is an option is Python steup for the C++ compiler for instance). The exemple you give is valid for GCC, but is not for other compilers that will crash with

Re: [Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Michael Droettboom
This is a long standing Python (distutils) bug, IMHO. Numpy, for instance, ships with a heavily patched version of distutils that has a workaround for this. Maybe now that mpl requires Numpy, there may be some advantage to using its distutils rather than the stock one. (I say having not looke

Re: [Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Xavier Gnata
http://deluge-torrent.org/svn/tags/deluge-0.5.0/setup.py seems to provide us with a clean?? way to do that. > Hi, > > Well the point is that matplotlib in writtenin C++ and python is written > in C. > The valid gcc options are not the same in C and in C++ so it looks > strange (and it is a pity

Re: [Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Xavier Gnata
Hi, Well the point is that matplotlib in writtenin C++ and python is written in C. The valid gcc options are not the same in C and in C++ so it looks strange (and it is a pity) if distutils do not provide the user with a way to modify these flag in this case. XAvier > Hi, > > Matplotlib uses t

Re: [Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Matthieu Brucher
Hi, Matplotlib uses the distutils facilities to build the extension code. Unfortunately, it is not possible to add or remove compiler flags, distutils uses the same flags as Python when it was built. So this should probably be sent to the Python users ML. Matthieu 2007/7/23, Xavier Gnata <[EMAI

[Matplotlib-users] -Wstrict-prototypes option should not be added

2007-07-23 Thread Xavier Gnata
Hi, It would be great to be able to compile matplotlib without a warning :) Unfortunately, I was not able to fix this warning performing a simple grep into the sources: "cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++" It looks like this option

[Matplotlib-users] Matplotlib phylosophy

2007-07-23 Thread Zack 24
Hi All, Been reading this mail-list for a long time, I came to a conclusion, that principal structure of the program is not well thought. Look at the ton of mails where is asking how to change one or another parameter in the given Plot. People just don't remember all functions or variables which

Re: [Matplotlib-users] Reposition a Legend

2007-07-23 Thread Armando Serrano Lombillo
In the legend command, the location keyword accepts a tuple giving x, y in axes coords, so I guess it will also work similarly with the figlegend command (which I assume you are using). Also you could try using legend (instead of figlegend) with coords out of the [0,1] range. See: http://matplotl