Charlie Moad | 1 Aug 03:51
Picon

Re: matplotlib 0.98.3 release candidate, please test

On Thu, Jul 31, 2008 at 3:17 PM, John Hunter <jdh2358-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
On Thu, Jul 31, 2008 at 2:06 PM, Michael Droettboom <mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org> wrote:
> It seems to have broken with a recent update to Sphinx.  Sphinx changed the
> way that cross-reference urls are stored in the document tree.  I have
> updated matplotlib to use an approach that work for Sphinx both before and
> after this change (SVN r5940).
>
> I don't consider this a "show-stopper" if it's too late to push another
> matplotlib update out.

OK, I think we are ready to roll.  Charlie, you can tag the release
and get to work on the binaries and release when you have time.  I'll
be in sporadic email contact until Monday, so why don't you do the
announce (feel free to just past in the updates in the CHANGELOG).  I
haven't been testing 0.91.x like I have 0.98.x so let's just release
the 0.98.3 point release at this time.  I don't think there are any
mission critical bugs in 91.x that require a release right now.

Sandro, if you want to test the final/final, it is at
http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3.tar.gz (svn
r5941)

So should I be including the built docs in the release now?  I have a few warnings that make it through to the pages.  I am building them on Ubuntu.

- Charlie
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Charlie Moad | 1 Aug 04:25
Picon

Re: matplotlib 0.98.3 release candidate, please test

On Thu, Jul 31, 2008 at 9:51 PM, Charlie Moad <cwmoad-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
On Thu, Jul 31, 2008 at 3:17 PM, John Hunter <jdh2358-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
On Thu, Jul 31, 2008 at 2:06 PM, Michael Droettboom <mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org> wrote:
> It seems to have broken with a recent update to Sphinx.  Sphinx changed the
> way that cross-reference urls are stored in the document tree.  I have
> updated matplotlib to use an approach that work for Sphinx both before and
> after this change (SVN r5940).
>
> I don't consider this a "show-stopper" if it's too late to push another
> matplotlib update out.

OK, I think we are ready to roll.  Charlie, you can tag the release
and get to work on the binaries and release when you have time.  I'll
be in sporadic email contact until Monday, so why don't you do the
announce (feel free to just past in the updates in the CHANGELOG).  I
haven't been testing 0.91.x like I have 0.98.x so let's just release
the 0.98.3 point release at this time.  I don't think there are any
mission critical bugs in 91.x that require a release right now.

Sandro, if you want to test the final/final, it is at
http://matplotlib.sourceforge.net/tmp/matplotlib-0.98.3.tar.gz (svn
r5941)

So should I be including the built docs in the release now?  I have a few warnings that make it through to the pages.  I am building them on Ubuntu.

- Charlie

Scratch that.  It looks pretty good with the latest svn.  Now the question as to where to put the built docs?  "doc/build/html" seems a bit hidden.  Has this been discussed yet?

- Charlie
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
eliben | 1 Aug 10:32
Picon
Gravatar

more demos of mpl with wxPython


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-wxpython-guis/

It is my hope that others will find this code useful. And if you have any
corrections, insights or general comments, please let me know.

Eli

--

-- 
View this message in context: http://www.nabble.com/more-demos-of-mpl-with-wxPython-tp18770262p18770262.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Michael Droettboom | 1 Aug 14:49

Re: Thin wedges missing from pie graph

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 do.
>
> On Thu, Jul 31, 2008 at 3:45 PM, John Hunter <jdh2358@... 
> <mailto:jdh2358@...>> wrote:
>
>     On Thu, Jul 31, 2008 at 3:09 PM, Jonathan Hayward,
>     http://JonathansCorner.com <jonathan.hayward@...
>     <mailto:jonathan.hayward@...>> wrote:
>     > I emerged 0.91.2 through my distribution's packaging system. Do
>     I need to
>     > compile the newest version from source or something like that?
>     >
>
>     The 0.98.3 release will be out very soon -- just keep your eyes out
>     for an announcement on this list.
>
>     JDH
>
>
>
>
> -- 
> -- Jonathan Hayward, christos.jonathan.hayward@... 
> <mailto:christos.jonathan.hayward@...>
>
> ** To see an award-winning website with stories, essays, artwork,
> ** games, and a four-dimensional maze, why not visit my home page?
> ** All of this is waiting for you at http://JonathansCorner.com
>
> ++ Would you like to curl up with one of my hardcover books?
> ++ You can now get my books from http://CJSHayward.com
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>   

--

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Søren Nielsen | 1 Aug 15:10
Picon

Moving legend with mouse?


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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Picon
Favicon
Gravatar

Re: Thin wedges missing from pie graph

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 <mdroe-PfB3aINIHTeHXe+LvDLADg@public.gmane.org> wrote:
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 do.


On Thu, Jul 31, 2008 at 3:45 PM, John Hunter <jdh2358-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <mailto:jdh2358-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> wrote:

   On Thu, Jul 31, 2008 at 3:09 PM, Jonathan Hayward,
   http://JonathansCorner.com <jonathan.hayward-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org
   <mailto:jonathan.hayward-e+AXbWqSrlAAvxtiuMwx3w@public.gmane.org>> wrote:
   > I emerged 0.91.2 through my distribution's packaging system. Do
   I need to
   > compile the newest version from source or something like that?
   >

   The 0.98.3 release will be out very soon -- just keep your eyes out
   for an announcement on this list.

   JDH




--
-- Jonathan Hayward, christos.jonathan.hayward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <mailto:christos.jonathan.hayward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>


** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
------------------------------------------------------------------------

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
 

--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA




--
-- Jonathan Hayward, christos.jonathan.hayward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Picon
Favicon
Gravatar

Crash on import with CGI wrapped by PHP--unhappy with .matplotlib directory?

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 found that when I call a Python script from a PHP script, output works before but not after "import matplotlib": if the PHP script calls a script of:

#!/usr/bin/python
print "Before import matplotlib."
import matplotlib;
print "After import matplotlib."

the first print statement succeeds but the second one fails; the server log shows a crash of:

Before import matplotlib.Traceback (most recent call last):
  File "/home/jhayward/bintmp/test.py", line 5, in <module>
    import matplotlib;
  File "/usr/lib64/python2.5/site-packages/matplotlib/__init__.py", line 639, in <module>
    rcParams = rc_params()
  File "/usr/lib64/python2.5/site-packages/matplotlib/__init__.py", line 562, in rc_params
    fname = matplotlib_fname()
  File "/usr/lib64/python2.5/site-packages/matplotlib/__init__.py", line 513, in matplotlib_fname
    fname = os.path.join(get_configdir(), 'matplotlibrc')
  File "/usr/lib64/python2.5/site-packages/matplotlib/__init__.py", line 207, in wrapper
    ret = func(*args, **kwargs)
  File "/usr/lib64/python2.5/site-packages/matplotlib/__init__.py", line 403, in _get_configdir
    raise RuntimeError("Failed to create %s/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data"%h)
RuntimeError: Failed to create /root/.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data

I think this error is somewhat misleading; it persisted after I ran a "chmod -R 1777 /root/.matplotlib".

What is the proper way to adjust things so matplotlib will be happy with its .matplotlib directory?

--
-- Jonathan Hayward, christos.jonathan.hayward-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org

** To see an award-winning website with stories, essays, artwork,
** games, and a four-dimensional maze, why not visit my home page?
** All of this is waiting for you at http://JonathansCorner.com

++ Would you like to curl up with one of my hardcover books?
++ You can now get my books from http://CJSHayward.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@...
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
Michael Droettboom | 1 Aug 17:51

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

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 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 found that when I call a Python script 
> from a PHP script, output works before but not after "import 
> matplotlib": if the PHP script calls a script of:
>
> #!/usr/bin/python
> print "Before import matplotlib."
> import matplotlib;
> print "After import matplotlib."
>
> the first print statement succeeds but the second one fails; the 
> server log shows a crash of:
>
> Before import matplotlib.Traceback (most recent call last):
>   File "/home/jhayward/bintmp/test.py", line 5, in <module>
>     import matplotlib;
>   File "/usr/lib64/python2.5/site-packages/matplotlib/__init__.py", 
> line 639, in <module>
>     rcParams = rc_params()
>   File "/usr/lib64/python2.5/site-packages/matplotlib/__init__.py", 
> line 562, in rc_params
>     fname = matplotlib_fname()
>   File "/usr/lib64/python2.5/site-packages/matplotlib/__init__.py", 
> line 513, in matplotlib_fname
>     fname = os.path.join(get_configdir(), 'matplotlibrc')
>   File "/usr/lib64/python2.5/site-packages/matplotlib/__init__.py", 
> line 207, in wrapper
>     ret = func(*args, **kwargs)
>   File "/usr/lib64/python2.5/site-packages/matplotlib/__init__.py", 
> line 403, in _get_configdir
>     raise RuntimeError("Failed to create %s/.matplotlib; consider 
> setting MPLCONFIGDIR to a writable directory for matplotlib 
> configuration data"%h)
> RuntimeError: Failed to create /root/.matplotlib; consider setting 
> MPLCONFIGDIR to a writable directory for matplotlib configuration data
>
> I think this error is somewhat misleading; it persisted after I ran a 
> "chmod -R 1777 /root/.matplotlib".
>
> What is the proper way to adjust things so matplotlib will be happy 
> with its .matplotlib directory?
>
> -- 
> -- Jonathan Hayward, christos.jonathan.hayward@... 
> <mailto:christos.jonathan.hayward@...>
>
> ** To see an award-winning website with stories, essays, artwork,
> ** games, and a four-dimensional maze, why not visit my home page?
> ** All of this is waiting for you at http://JonathansCorner.com
>
> ++ Would you like to curl up with one of my hardcover books?
> ++ You can now get my books from http://CJSHayward.com
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>   

--

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Alan G Isaac | 1 Aug 18:05
Picon
Favicon
Gravatar

Re: more demos of mpl with wxPython

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.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
eliben | 1 Aug 18:29
Picon
Gravatar

Re: more demos of mpl with wxPython


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 people will hesitate to
> even look at them.
> 

On my website it says that all code is LGPL, unless stated otherwise. But
you're probably right and it makes sense to add a license to each file. So I
added it in the comment at the top.

Interesting. I wouldn't imagine anyone would hesitate borrowing code from a
demo because of a lack of license.

Eli

--

-- 
View this message in context: http://www.nabble.com/more-demos-of-mpl-with-wxPython-tp18770262p18778255.html
Sent from the matplotlib - users mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

Gmane