Re: [Matplotlib-users] more demos of mpl with wxPython

2008-08-01 Thread eliben
Alan G Isaac wrote: > > I read Jonathan's point as being: there is no such > "linking" possibility with such demo scripts. > This indeed is why I questioned the relevance of > the LGPL for such things, earlier on, even though > the LGPL is in principle (and often in practice) > a much more user

Re: [Matplotlib-users] more demos of mpl with wxPython

2008-08-01 Thread Alan G Isaac
On Fri, 1 Aug 2008, eliben apparently wrote: > if you link my module into your code, you won't have to > release your code, I read Jonathan's point as being: there is no such "linking" possibility with such demo scripts. This indeed is why I questioned the relevance of the LGPL for such things, e

Re: [Matplotlib-users] more demos of mpl with wxPython

2008-08-01 Thread eliben
JonathansCorner.com wrote: > > I personally regard viral licenses with caution: that is, if the copyright > says, "Don't build on or extend this unless you want your work to be > covered > by my chosen license," I will be extremely cautious about building off of > them. Under the LGPV, if I inc

Re: [Matplotlib-users] Parallel Coordinate Plot?

2008-08-01 Thread Jeff Whitaker
Ben Axelrod wrote: > > Before I go about creating this plot by hand, I would like to verify > that matplotlib does not already have this functionality. See > attached pic. > > > > Thanks, > > -Ben > Ben: No, it doesn't. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologi

Re: [Matplotlib-users] cyclic longitude in Basemap

2008-08-01 Thread Jeff Whitaker
Zane Selvans wrote: > Hi all, > > Does anybody know how one gets a mpl_toolkits.basemap.Basemap map to > automatically recognize when a feature has run off the end of the > longitude range, and needs to wrap around and show up on the far side > of a map having global extent? I have a bunch o

Re: [Matplotlib-users] Crash on import with CGI wrapped by PHP--unhappy with .matplotlib directory?

2008-08-01 Thread Michael Droettboom
This is getting a bit outside of my knowledge area, but it does look like the environment variables are not being set up correctly when the Python process is run. This is probably a more general apache/mod_php sort of question, but it would be great to post the answer here so we can add a solu

[Matplotlib-users] cyclic longitude in Basemap

2008-08-01 Thread Zane Selvans
Hi all, Does anybody know how one gets a mpl_toolkits.basemap.Basemap map to automatically recognize when a feature has run off the end of the longitude range, and needs to wrap around and show up on the far side of a map having global extent? I have a bunch of linear features I'm trying

Re: [Matplotlib-users] Crash on import with CGI wrapped by PHP--unhappy with .matplotlib directory?

2008-08-01 Thread "Jonathan Hayward, http://JonathansCorner.com"
It looks like an apache that thinks it's root: os.system("whoami") print "" print os.geteuid() print "" print os.getuid() print "" print os.path.expanduser("~") print "" print os.getenv("HOME") print "" print os.getenv("USERPROFILE") print "" print os.getenv("USER") print "" print os.getenv("TMP")

Re: [Matplotlib-users] more demos of mpl with wxPython

2008-08-01 Thread "Jonathan Hayward, http://JonathansCorner.com"
On Fri, Aug 1, 2008 at 12:43 PM, eliben <[EMAIL PROTECTED]> wrote: > > > > Alan G Isaac wrote: > > > > On Fri, 1 Aug 2008, eliben apparently wrote: > >> I wouldn't imagine anyone would hesitate borrowing code > >> from a demo because of a lack of license. > > > > It depends on what you mean by "la

Re: [Matplotlib-users] Crash on import with CGI wrapped by PHP--unhappy with .matplotlib directory?

2008-08-01 Thread Michael Droettboom
Below is the code in mpl that actually does the lookup. To get to the bottom of this, I would try to figure out in your Apache/PHP environment what a) what os.path.expanduser("~") gives b) what the values of the environment variables "HOME", "USERPROFILE", "USER", and "TMP" are. I su

Re: [Matplotlib-users] more demos of mpl with wxPython

2008-08-01 Thread Alan G Isaac
On Fri, 1 Aug 2008, eliben apparently wrote: > http://eli.thegreenplace.net/2006/04/13/choosing-an-open-source-license-for-my-code/ > It is not the case that everything that is "code" needs a common license. You may wish to read http://www.scipy.org/License_Compatibility Or not. ;-) But I fin

Re: [Matplotlib-users] Crash on import with CGI wrapped by PHP--unhappy with .matplotlib directory?

2008-08-01 Thread "Jonathan Hayward, http://JonathansCorner.com"
User apache exists with home directory /var/www, which exists. On Fri, Aug 1, 2008 at 11:59 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > It's supposed to default to the current user's home directory. Perhaps > "apache" doesn't have a home directory? > > Cheers, > Mike > > "Jonathan Haywar

Re: [Matplotlib-users] Crash on import with CGI wrapped by PHP--unhappy with .matplotlib directory?

2008-08-01 Thread "Jonathan Hayward, http://JonathansCorner.com"
I found a reason for the behavior: The script was running as user apache, but trying to open /root/.matplotlib, and /root was mode 0700. It stopped crashing on import after I made /root mode 0711. This is somewhat surprising behavior to me; shouldn't it be defaulting to something besides expected

Re: [Matplotlib-users] more demos of mpl with wxPython

2008-08-01 Thread eliben
Alan G Isaac wrote: > > On Fri, 1 Aug 2008, eliben apparently wrote: >> I wouldn't imagine anyone would hesitate borrowing code >> from a demo because of a lack of license. > > It depends on what you mean by "lack of a license". > I think what most people (myself included) would > like to se

Re: [Matplotlib-users] more demos of mpl with wxPython

2008-08-01 Thread Alan G Isaac
On Fri, 1 Aug 2008, eliben apparently wrote: > I wouldn't imagine anyone would hesitate borrowing code > from a demo because of a lack of license. It depends on what you mean by "lack of a license". I think what most people (myself included) would like to see for a demo script is "this file is i

Re: [Matplotlib-users] Crash on import with CGI wrapped by PHP--unhappy with .matplotlib directory?

2008-08-01 Thread Michael Droettboom
It's supposed to default to the current user's home directory. Perhaps "apache" doesn't have a home directory? Cheers, Mike "Jonathan Hayward, http://JonathansCorner.com"; wrote: > I found a reason for the behavior: > > The script was running as user apache, but trying to open > /root/.matplot

Re: [Matplotlib-users] Crash on import with CGI wrapped by PHP--unhappy with .matplotlib directory?

2008-08-01 Thread "Jonathan Hayward, http://JonathansCorner.com"
I found a reason for the behavior: The script was running as user apache, but trying to open /root/.matplotlib, and /root was mode 0700. It stopped crashing on import after I made /root mode 0711. This is somewhat surprising behavior to me; shouldn't it be defaulting to something besides expected

Re: [Matplotlib-users] Crash on import with CGI wrapped by PHP--unhappy with .matplotlib directory?

2008-08-01 Thread "Jonathan Hayward, http://JonathansCorner.com"
Tried that and reran it; I'm getting substantially the same stacktrace: File "/home/jhayward/bintmp/test.py", line 5, in import matplotlib; File "/usr/lib64/python2.5/site-packages/matplotlib/__init__.py", line 639, in rcParams = rc_params() File "/usr/lib64/python2.5/site-packages

Re: [Matplotlib-users] more demos of mpl with wxPython

2008-08-01 Thread eliben
Alan G Isaac wrote: > > On Fri, 1 Aug 2008, eliben apparently wrote: >> http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/ > > Cool demos: short and to the point. > Alan > PS Even though these are just short demos, > please include a software license. > Otherwise some peop

Re: [Matplotlib-users] more demos of mpl with wxPython

2008-08-01 Thread Alan G Isaac
On Fri, 1 Aug 2008, eliben apparently wrote: > http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxpython-guis/ Cool demos: short and to the point. Alan PS Even though these are just short demos, please include a software license. Otherwise some people will hesitate to even look at them.

Re: [Matplotlib-users] Crash on import with CGI wrapped by PHP--unhappy with .matplotlib directory?

2008-08-01 Thread Michael Droettboom
Just throwing out a suggestion here: You could try putting a matplotlibrc file in the same directory as your Python script -- it will use that instead of the one in ~/.matplotlib. Cheers, Mike "Jonathan Hayward, http://JonathansCorner.com"; wrote: > I have a PHP script which authenticates a use

[Matplotlib-users] Crash on import with CGI wrapped by PHP--unhappy with .matplotlib directory?

2008-08-01 Thread "Jonathan Hayward, http://JonathansCorner.com"
I have a PHP script which authenticates a user and I am trying to get the PHP script to wrap a Python script using matplotlib. As it is, the script mostly works when invoked from the command line or as its own CGI script. When I call it from a PHP script, it doesn't produce output, and testing fou

Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-08-01 Thread "Jonathan Hayward, http://JonathansCorner.com"
I deleted the matplotlib directory (there was one at the path you provided) and reinstalled 0.91.2; the behavior was identical. On Fri, Aug 1, 2008 at 7:49 AM, Michael Droettboom <[EMAIL PROTECTED]> wrote: > Hmmm... The puzzling thing is that 0.91.2 works for me with the example > you provided.

[Matplotlib-users] Moving legend with mouse?

2008-08-01 Thread Søren Nielsen
I'm using matplotlib 0.98 together with wxpython 2.8.8.0. It would be nice to be able to click on the legend and move it with the mouse. Is that possible? Is there a simple way to do this? Has anyone tried this or can someone point in the direction? Thanks, Soren --

Re: [Matplotlib-users] Thin wedges missing from pie graph

2008-08-01 Thread Michael Droettboom
Hmmm... The puzzling thing is that 0.91.2 works for me with the example you provided. Can you try clearing out the installation directory (usually /usr/lib/python2.5/site-packages/matplotlib/) and trying again? Cheers, Mike "Jonathan Hayward, http://JonathansCorner.com"; wrote: > Thanks; will

[Matplotlib-users] more demos of mpl with wxPython

2008-08-01 Thread eliben
For those who may be interested: I plan to use mpl for some serious plotting in my programs featuring wxPython GUIs. To get started, I've written a couple of non-trivial demos with mpl and wxPython and posted them online (code and all). http://eli.thegreenplace.net/2008/08/01/matplotlib-with-wxp