SourceForge logo
SourceForge logo
Menu

matplotlib-users — Discussion related to using matplotlib

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
(3)
Jun
Jul
Aug
(12)
Sep
(12)
Oct
(56)
Nov
(65)
Dec
(37)
2004 Jan
(59)
Feb
(78)
Mar
(153)
Apr
(205)
May
(184)
Jun
(123)
Jul
(171)
Aug
(156)
Sep
(190)
Oct
(120)
Nov
(154)
Dec
(223)
2005 Jan
(184)
Feb
(267)
Mar
(214)
Apr
(286)
May
(320)
Jun
(299)
Jul
(348)
Aug
(283)
Sep
(355)
Oct
(293)
Nov
(232)
Dec
(203)
2006 Jan
(352)
Feb
(358)
Mar
(403)
Apr
(313)
May
(165)
Jun
(281)
Jul
(316)
Aug
(228)
Sep
(279)
Oct
(243)
Nov
(315)
Dec
(345)
2007 Jan
(260)
Feb
(323)
Mar
(340)
Apr
(319)
May
(290)
Jun
(296)
Jul
(221)
Aug
(292)
Sep
(242)
Oct
(248)
Nov
(242)
Dec
(332)
2008 Jan
(312)
Feb
(359)
Mar
(454)
Apr
(287)
May
(340)
Jun
(450)
Jul
(403)
Aug
(324)
Sep
(349)
Oct
(385)
Nov
(363)
Dec
(437)
2009 Jan
(500)
Feb
(301)
Mar
(409)
Apr
(486)
May
(545)
Jun
(391)
Jul
(518)
Aug
(497)
Sep
(492)
Oct
(429)
Nov
(357)
Dec
(310)
2010 Jan
(371)
Feb
(657)
Mar
(519)
Apr
(432)
May
(312)
Jun
(416)
Jul
(477)
Aug
(386)
Sep
(419)
Oct
(435)
Nov
(320)
Dec
(202)
2011 Jan
(321)
Feb
(413)
Mar
(299)
Apr
(215)
May
(284)
Jun
(203)
Jul
(207)
Aug
(314)
Sep
(321)
Oct
(259)
Nov
(347)
Dec
(209)
2012 Jan
(322)
Feb
(414)
Mar
(377)
Apr
(179)
May
(173)
Jun
(234)
Jul
(295)
Aug
(239)
Sep
(276)
Oct
(355)
Nov
(144)
Dec
(108)
2013 Jan
(170)
Feb
(89)
Mar
(204)
Apr
(133)
May
(142)
Jun
(89)
Jul
(160)
Aug
(180)
Sep
(69)
Oct
(136)
Nov
(83)
Dec
(32)
2014 Jan
(71)
Feb
(90)
Mar
(161)
Apr
(117)
May
(78)
Jun
(94)
Jul
(60)
Aug
(83)
Sep
(102)
Oct
(132)
Nov
(154)
Dec
(96)
2015 Jan
(45)
Feb
(138)
Mar
(176)
Apr
(132)
May
(119)
Jun
(124)
Jul
(77)
Aug
(31)
Sep
(34)
Oct
(22)
Nov
(23)
Dec
(9)
2016 Jan
(26)
Feb
(17)
Mar
(10)
Apr
(8)
May
(4)
Jun
(8)
Jul
(6)
Aug
(5)
Sep
(9)
Oct
(4)
Nov
Dec
2017 Jan
(5)
Feb
(7)
Mar
(1)
Apr
(5)
May
Jun
(3)
Jul
(6)
Aug
(1)
Sep
Oct
(2)
Nov
(1)
Dec
2018 Jan
Feb
Mar
Apr
(1)
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2020 Jan
Feb
Mar
Apr
May
(1)
Jun
Jul
Aug
Sep
Oct
Nov
Dec
2025 Jan
(1)
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
S M T W T F S





1
(28)
2
(11)
3
(15)
4
(11)
5
(13)
6
(33)
7
(13)
8
(9)
9
(2)
10
(9)
11
(27)
12
(5)
13
(10)
14
(6)
15
(9)
16
(4)
17
(2)
18
(19)
19
(11)
20
(9)
21
(16)
22
(16)
23
(5)
24
(2)
25
(8)
26
(2)
27
(11)
28
(10)
29
(5)
30
(1)
31
(2)






Showing results of 27

1 2 > >> (Page 1 of 2)
From: Jeff W. <js...@fa...> - 2008年08月01日 22:30:45
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
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
From: Jeff W. <js...@fa...> - 2008年08月01日 19:33:21
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 of linear features I'm 
> trying to plot intelligently... and what happens now is, either the 
> feature runs off the edge, and disappears, or, if I change the 
> coordinates making up the object to all lie within the longitude range 
> that the map contains, then I end up with a line going all the way 
> across the map from one side to the other, connecting the two portions 
> of the feature.
> 
Zane: This has come up several times before on the list, and 
unfortunately the answer is no - I don't know of any general way to do 
what you ask. Unless someone else has a solution, I think you'll have 
to manually split up your lines so they all fit in the map region.
If all you lines are in one hemisphere, another potential solution is to 
use a polar stereographic map (projection = 'npstere' or 'spstere'). 
That way, you'll be looking down on the earth from above the pole, and 
the lines will all be within the map (never crossing an edge).
> There's this function "addcyclic", but I don't think it does what I 
> want. Actually, I'm not exactly clear on what it does.
> 
It adds an extra column of data that repeats the first longitude, so you 
don't get a gap on the plot when you plot a global dataset.
-Jeff
-- 
Jeffrey S. Whitaker Phone : (303)497-6313
Meteorologist FAX : (303)497-6449
NOAA/OAR/PSD R/PSD1 Email : Jef...@no...
325 Broadway Office : Skaggs Research Cntr 1D-113
Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg
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 solution to the matplotlib FAQ.
Cheers,
Mike
"Jonathan Hayward, http://JonathansCorner.com" wrote:
> It looks like an apache that thinks it's root:
>
> os.system("whoami")
> print "<br>"
> print os.geteuid()
> print "<br>"
> print os.getuid()
> print "<br>"
> print os.path.expanduser("~")
> print "<br>"
> print os.getenv("HOME")
> print "<br>"
> print os.getenv("USERPROFILE")
> print "<br>"
> print os.getenv("USER")
> print "<br>"
> print os.getenv("TMP")
> print "<br>"
>
> produces:
>
> apache
> 81
> 81
> /root
> /root
> None
> root
> None
>
> So I should adjust the system so a confused apache-owned process that 
> thinks it's root will run? Or are there features to ask PHP to spawn 
> subprocesses that know who they're running as? (or is that something 
> beside the point of this list?)
>
> On Fri, Aug 1, 2008 at 1:09 PM, Michael Droettboom <md...@st... 
> <mailto:md...@st...>> wrote:
>
> 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 suspect either matplotlib is not getting run under user 'apache'
> as it should, or there is something fishy about the environment.
>
> Cheers,
> Mike
>
> def _get_home():
> """Find user's home directory if possible.
> Otherwise raise error.
>
> :see:
> http://mail.python.org/pipermail/python-list/2005-February/263921.html
> """
> path=''
> try:
> path=os.path.expanduser("~")
> except:
> pass
> if not os.path.isdir(path):
> for evar in ('HOME', 'USERPROFILE', 'TMP'):
> try:
> path = os.environ[evar]
> if os.path.isdir(path):
> break
> except: pass
> if path:
> return path
> else:
> raise RuntimeError('please define environment variable $HOME')
>
>
>
> get_home = verbose.wrap('$HOME=%s', _get_home, always=False)
>
> def _get_configdir():
> """
> Return the string representing the configuration dir.
>
> default is HOME/.matplotlib. you can override this with the
> MPLCONFIGDIR environment variable
> """
>
> configdir = os.environ.get('MPLCONFIGDIR')
> if configdir is not None:
> if not _is_writable_dir(configdir):
> raise RuntimeError('Could not write to
> MPLCONFIGDIR="%s"'%configdir)
> return configdir
>
> h = get_home()
> p = os.path.join(get_home(), '.matplotlib')
>
> if os.path.exists(p):
> if not _is_writable_dir(p):
> raise RuntimeError("'%s' is not a writable dir; you must
> set %s/.matplotlib to be a writable dir. You can also set
> environment variable MPLCONFIGDIR to any writable directory where
> you want matplotlib data stored "% (h, h))
> else:
> if not _is_writable_dir(h):
>
> raise RuntimeError("Failed to create %s/.matplotlib;
> consider setting MPLCONFIGDIR to a writable directory for
> matplotlib configuration data"%h)
>
> os.mkdir(p)
>
>
>
> "Jonathan Hayward, http://JonathansCorner.com" wrote:
>
> User apache exists with home directory /var/www, which exists.
>
> On Fri, Aug 1, 2008 at 11:59 AM, Michael Droettboom
> <md...@st... <mailto:md...@st...>
> <mailto:md...@st... <mailto:md...@st...>>> wrote:
>
> 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/.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 access to ~root?
>
> On Fri, Aug 1, 2008 at 11:38 AM, Jonathan Hayward,
> http://JonathansCorner.com <jon...@po...
> <mailto:jon...@po...>
> <mailto:jon...@po...
> <mailto:jon...@po...>>
> <mailto:jon...@po...
> <mailto:jon...@po...>
> <mailto:jon...@po...
> <mailto:jon...@po...>>>> wrote:
>
> Tried that and reran it; I'm getting substantially
> the same
> stacktrace:
>
>
> 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
>
> It's /path/matplotlibrc and not /path/.matplotlibrc
> or anything
> like that?
>
>
> On Fri, Aug 1, 2008 at 10:51 AM, Michael Droettboom
> <md...@st... <mailto:md...@st...>
> <mailto:md...@st... <mailto:md...@st...>>
> <mailto:md...@st... <mailto:md...@st...>
> <mailto:md...@st... <mailto:md...@st...>>>> wrote:
>
> 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,
> chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>>>
>
>
> ** 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=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> 
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>>
> 
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> 
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>>>
> 
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> <mailto:Mat...@li...
> <mailto:Mat...@li...>>
> 
> <mailto:Mat...@li...
> <mailto:Mat...@li...>
> <mailto:Mat...@li...
> <mailto:Mat...@li...>>>
>
> 
> 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,
> chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>>
>
> ** 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
>
>
>
>
> -- -- Jonathan Hayward,
> chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>>
>
> ** 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
>
>
> -- Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
>
>
> -- 
> -- Jonathan Hayward, chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>
>
> ** 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
>
>
> -- 
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
>
>
> -- 
> -- Jonathan Hayward, chr...@gm... 
> <mailto:chr...@gm...>
>
> ** 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
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Zane S. <za...@id...> - 2008年08月01日 18:34:20
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 to plot intelligently... and what happens now is, either the 
feature runs off the edge, and disappears, or, if I change the 
coordinates making up the object to all lie within the longitude range 
that the map contains, then I end up with a line going all the way 
across the map from one side to the other, connecting the two portions 
of the feature.
There's this function "addcyclic", but I don't think it does what I 
want. Actually, I'm not exactly clear on what it does.
Thanks for any insight you might have,
Zane
--
Zane Selvans
Amateur Earthling
http://zaneselvans.org
za...@id...
303/815-6866
PGP Key: 55E0815F
From: \Jonathan H. http://JonathansCorner.com\ <jon...@po...> - 2008年08月01日 18:22:58
It looks like an apache that thinks it's root:
os.system("whoami")
print "<br>"
print os.geteuid()
print "<br>"
print os.getuid()
print "<br>"
print os.path.expanduser("~")
print "<br>"
print os.getenv("HOME")
print "<br>"
print os.getenv("USERPROFILE")
print "<br>"
print os.getenv("USER")
print "<br>"
print os.getenv("TMP")
print "<br>"
produces:
apache
81
81
/root
/root
None
root
None
So I should adjust the system so a confused apache-owned process that thinks
it's root will run? Or are there features to ask PHP to spawn subprocesses
that know who they're running as? (or is that something beside the point of
this list?)
On Fri, Aug 1, 2008 at 1:09 PM, Michael Droettboom <md...@st...> wrote:
> 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 suspect either matplotlib is not getting run under user 'apache' as it
> should, or there is something fishy about the environment.
>
> Cheers,
> Mike
>
> def _get_home():
> """Find user's home directory if possible.
> Otherwise raise error.
>
> :see:
> http://mail.python.org/pipermail/python-list/2005-February/263921.html
> """
> path=''
> try:
> path=os.path.expanduser("~")
> except:
> pass
> if not os.path.isdir(path):
> for evar in ('HOME', 'USERPROFILE', 'TMP'):
> try:
> path = os.environ[evar]
> if os.path.isdir(path):
> break
> except: pass
> if path:
> return path
> else:
> raise RuntimeError('please define environment variable $HOME')
>
>
>
> get_home = verbose.wrap('$HOME=%s', _get_home, always=False)
>
> def _get_configdir():
> """
> Return the string representing the configuration dir.
>
> default is HOME/.matplotlib. you can override this with the
> MPLCONFIGDIR environment variable
> """
>
> configdir = os.environ.get('MPLCONFIGDIR')
> if configdir is not None:
> if not _is_writable_dir(configdir):
> raise RuntimeError('Could not write to
> MPLCONFIGDIR="%s"'%configdir)
> return configdir
>
> h = get_home()
> p = os.path.join(get_home(), '.matplotlib')
>
> if os.path.exists(p):
> if not _is_writable_dir(p):
> raise RuntimeError("'%s' is not a writable dir; you must set
> %s/.matplotlib to be a writable dir. You can also set environment variable
> MPLCONFIGDIR to any writable directory where you want matplotlib data stored
> "% (h, h))
> else:
> if not _is_writable_dir(h):
> raise RuntimeError("Failed to create %s/.matplotlib; consider
> setting MPLCONFIGDIR to a writable directory for matplotlib configuration
> data"%h)
>
> os.mkdir(p)
>
>
> "Jonathan Hayward, http://JonathansCorner.com" wrote:
>
>> User apache exists with home directory /var/www, which exists.
>>
>> On Fri, Aug 1, 2008 at 11:59 AM, Michael Droettboom <md...@st...<mailto:
>> md...@st...>> wrote:
>>
>> 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/.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 access to ~root?
>>
>> On Fri, Aug 1, 2008 at 11:38 AM, Jonathan Hayward,
>> http://JonathansCorner.com <jon...@po...
>> <mailto:jon...@po...>
>> <mailto:jon...@po...
>> <mailto:jon...@po...>>> wrote:
>>
>> Tried that and reran it; I'm getting substantially the same
>> stacktrace:
>>
>>
>> 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
>>
>> It's /path/matplotlibrc and not /path/.matplotlibrc or anything
>> like that?
>>
>>
>> On Fri, Aug 1, 2008 at 10:51 AM, Michael Droettboom
>> <md...@st... <mailto:md...@st...>
>> <mailto:md...@st... <mailto:md...@st...>>> wrote:
>>
>> 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,
>> chr...@gm...
>> <mailto:chr...@gm...>
>> <mailto:chr...@gm...
>> <mailto:chr...@gm...>>
>> <mailto:chr...@gm...
>> <mailto:chr...@gm...>
>> <mailto:chr...@gm...
>> <mailto:chr...@gm...>>>
>>
>>
>> ** 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=/
>> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
>> <
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> <mailto:Mat...@li...>
>> <mailto:Mat...@li...
>> <mailto:Mat...@li...>>
>>
>>
>> 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,
>> chr...@gm...
>> <mailto:chr...@gm...>
>> <mailto:chr...@gm...
>> <mailto:chr...@gm...>>
>>
>> ** 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
>>
>>
>>
>>
>> -- -- Jonathan Hayward, chr...@gm...
>> <mailto:chr...@gm...>
>> <mailto:chr...@gm...
>> <mailto:chr...@gm...>>
>>
>> ** 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
>>
>>
>> -- Michael Droettboom
>> Science Software Branch
>> Operations and Engineering Division
>> Space Telescope Science Institute
>> Operated by AURA for NASA
>>
>>
>>
>>
>> --
>> -- Jonathan Hayward, chr...@gm... <mailto:
>> chr...@gm...>
>>
>> ** 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
>>
>
> --
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
-- 
-- Jonathan Hayward, chr...@gm...
** 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
From: \Jonathan H. http://JonathansCorner.com\ <jon...@po...> - 2008年08月01日 18:15:53
On Fri, Aug 1, 2008 at 12:43 PM, eliben <el...@gm...> 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 "lack of a license".
> > I think what most people (myself included) would
> > like to see for a demo script is "this file is in the public
> > domain". That is not exactly a "license", but it roughly
> > means "use this however you want without worrying about
> > any restrictions, not even attribution requirements".
> >
> > I do not think the LGPL generally makes sense (literally)
> > for such scripts:
> > http://www.gnu.org/licenses/lgpl.html
> >
> > If public domain is uncomfortable,
> > then perhaps MIT or BSD would be comfortable.
> > <URL:http://www.opensource.org/licenses/mit-license.html>
> >
> > Of course, s/he who has the copyright chooses the license.
> >
> > Cheers,
> > Alan Isaac
> >
>
> Although we're markedly off-topic here, I want to mention that I've battled
> with the question of licensing my code. It's documented here:
>
> http://eli.thegreenplace.net/2006/04/13/choosing-an-open-source-license-for-my-code/
>
> The choice of LGPL eventually stems from my desire to promote free
> software,
> and prevent abuse. True, for demos it makes less sense than for full-blown
> libraries, but still...
>
> Consider this: the demo teaches someone how to make some interface/code
> work. He got it for free, because I've placed my demo publicly online. But
> he may want to incorporate it in his program, and hide from his users how
> he
> does the thing the demo taught him, winning a competitive advantage. This
> isn't fair, and LGPL prevents such use, while in general allowing one to
> use
> the code in commercial applications.
>
My understanding of what can and cannot be licensed, at least in U.S. law
and (as far as I know) some other areas as well, is that what you are trying
to guard is something you cannot guard unless you get a patent.
The specific text of a program, its concrete form, and perhaps other
"concrete implementation" features are covered (or at least can be covered)
by copyright.
Knowledge, including "how he does the thing the demo taught him," is not
subject to copyright. That is, if he legally reads your code, and clones
functionality, there is no way barring a software patent that you can
restrict this.
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 incorporate one of your demos into my own 2000
line program, your requirements of fairness require me to place my entire
2000 line program under the terms of the license you chose.
This is a significant deterrent to some programmers.
>
> Eli
>
>
> --
> View this message in context:
> http://www.nabble.com/more-demos-of-mpl-with-wxPython-tp18770262p18779533.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=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
-- 
-- Jonathan Hayward, chr...@gm...
** 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
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 suspect either matplotlib is not getting run under user 'apache' as it 
should, or there is something fishy about the environment.
Cheers,
Mike
def _get_home():
 """Find user's home directory if possible.
 Otherwise raise error.
 :see: 
http://mail.python.org/pipermail/python-list/2005-February/263921.html
 """
 path=''
 try:
 path=os.path.expanduser("~")
 except:
 pass
 if not os.path.isdir(path):
 for evar in ('HOME', 'USERPROFILE', 'TMP'):
 try:
 path = os.environ[evar]
 if os.path.isdir(path):
 break
 except: pass
 if path:
 return path
 else:
 raise RuntimeError('please define environment variable $HOME')
get_home = verbose.wrap('$HOME=%s', _get_home, always=False)
def _get_configdir():
 """
 Return the string representing the configuration dir.
 default is HOME/.matplotlib. you can override this with the
 MPLCONFIGDIR environment variable
 """
 configdir = os.environ.get('MPLCONFIGDIR')
 if configdir is not None:
 if not _is_writable_dir(configdir):
 raise RuntimeError('Could not write to 
MPLCONFIGDIR="%s"'%configdir)
 return configdir
 h = get_home()
 p = os.path.join(get_home(), '.matplotlib')
 if os.path.exists(p):
 if not _is_writable_dir(p):
 raise RuntimeError("'%s' is not a writable dir; you must set 
%s/.matplotlib to be a writable dir. You can also set environment 
variable MPLCONFIGDIR to any writable directory where you want 
matplotlib data stored "% (h, h))
 else:
 if not _is_writable_dir(h):
 raise RuntimeError("Failed to create %s/.matplotlib; 
consider setting MPLCONFIGDIR to a writable directory for matplotlib 
configuration data"%h)
 os.mkdir(p)
"Jonathan Hayward, http://JonathansCorner.com" wrote:
> User apache exists with home directory /var/www, which exists.
>
> On Fri, Aug 1, 2008 at 11:59 AM, Michael Droettboom <md...@st... 
> <mailto:md...@st...>> wrote:
>
> 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/.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 access to ~root?
>
> On Fri, Aug 1, 2008 at 11:38 AM, Jonathan Hayward,
> http://JonathansCorner.com <jon...@po...
> <mailto:jon...@po...>
> <mailto:jon...@po...
> <mailto:jon...@po...>>> wrote:
>
> Tried that and reran it; I'm getting substantially the same
> stacktrace:
>
>
> 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
>
> It's /path/matplotlibrc and not /path/.matplotlibrc or anything
> like that?
>
>
> On Fri, Aug 1, 2008 at 10:51 AM, Michael Droettboom
> <md...@st... <mailto:md...@st...>
> <mailto:md...@st... <mailto:md...@st...>>> wrote:
>
> 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,
> chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>>
>
>
> ** 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=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> 
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>>
> 
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> <mailto:Mat...@li...
> <mailto:Mat...@li...>>
>
> 
> 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,
> chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>
>
> ** 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
>
>
>
>
> -- 
> -- Jonathan Hayward, chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>
>
> ** 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
>
>
> -- 
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
>
>
> -- 
> -- Jonathan Hayward, chr...@gm... 
> <mailto:chr...@gm...>
>
> ** 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
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: Jonathan H. http://JonathansCorner.c. <chr...@gm...> - 2008年08月01日 18:09:41
On Fri, Aug 1, 2008 at 12:43 PM, eliben <el...@gm...> 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 "lack of a license".
> > I think what most people (myself included) would
> > like to see for a demo script is "this file is in the public
> > domain". That is not exactly a "license", but it roughly
> > means "use this however you want without worrying about
> > any restrictions, not even attribution requirements".
> >
> > I do not think the LGPL generally makes sense (literally)
> > for such scripts:
> > http://www.gnu.org/licenses/lgpl.html
> >
> > If public domain is uncomfortable,
> > then perhaps MIT or BSD would be comfortable.
> > <URL:http://www.opensource.org/licenses/mit-license.html>
> >
> > Of course, s/he who has the copyright chooses the license.
> >
> > Cheers,
> > Alan Isaac
> >
>
> Although we're markedly off-topic here, I want to mention that I've battled
> with the question of licensing my code. It's documented here:
>
> http://eli.thegreenplace.net/2006/04/13/choosing-an-open-source-license-for-my-code/
>
> The choice of LGPL eventually stems from my desire to promote free
> software,
> and prevent abuse. True, for demos it makes less sense than for full-blown
> libraries, but still...
>
> Consider this: the demo teaches someone how to make some interface/code
> work. He got it for free, because I've placed my demo publicly online. But
> he may want to incorporate it in his program, and hide from his users how
> he
> does the thing the demo taught him, winning a competitive advantage. This
> isn't fair, and LGPL prevents such use, while in general allowing one to
> use
> the code in commercial applications.
>
My understanding of what can and cannot be licensed, at least in U.S. law
and (as far as I know) some other areas as well, is that what you are trying
to guard is something you cannot guard unless you get a patent.
The specific text of a program, its concrete form, and perhaps other
"concrete implementation" features are covered (or at least can be covered)
by copyright.
Knowledge, including "how he does the thing the demo taught him," is not
subject to copyright. That is, if he legally reads your code, and clones
functionality, there is no way barring a software patent that you can
restrict this.
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 incorporate one of your demos into my own 2000
line program, your requirements of fairness require me to place my entire
2000 line program under the terms of the license you chose.
This is a significant deterrent to some programmers.
>
> Eli
>
>
> --
> View this message in context:
> http://www.nabble.com/more-demos-of-mpl-with-wxPython-tp18770262p18779533.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=/
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
-- 
-- Jonathan Hayward, chr...@gm...
** 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
From: Alan G I. <ai...@am...> - 2008年08月01日 18:08:32
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 find John very persuasive. (All the more
so given what he has contributed.)
Last comment: as someone who teaches, I give away
useful knowledge all the time, without conditions.
This probably shapes my view about what constitutes
appropriate "sharing" of simple scripts,
since I see this as a part of teaching.
(Also, as a valuable part of the Python culture.)
Cheers,
Alan Isaac
From: \Jonathan H. http://JonathansCorner.com\ <jon...@po...> - 2008年08月01日 18:02:22
User apache exists with home directory /var/www, which exists.
On Fri, Aug 1, 2008 at 11:59 AM, Michael Droettboom <md...@st...> wrote:
> 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/.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 access to ~root?
>>
>> On Fri, Aug 1, 2008 at 11:38 AM, Jonathan Hayward,
>> http://JonathansCorner.com <jon...@po... <mailto:
>> jon...@po...>> wrote:
>>
>> Tried that and reran it; I'm getting substantially the same
>> stacktrace:
>>
>>
>> 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
>>
>> It's /path/matplotlibrc and not /path/.matplotlibrc or anything
>> like that?
>>
>>
>> On Fri, Aug 1, 2008 at 10:51 AM, Michael Droettboom
>> <md...@st... <mailto:md...@st...>> wrote:
>>
>> 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,
>> chr...@gm...
>> <mailto:chr...@gm...>
>> <mailto:chr...@gm...
>> <mailto:chr...@gm...>>
>>
>>
>> ** 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=/
>> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Matplotlib-users mailing list
>> Mat...@li...
>> <mailto:Mat...@li...>
>> 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, chr...@gm...
>> <mailto:chr...@gm...>
>>
>> ** 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
>>
>>
>>
>>
>> --
>> -- Jonathan Hayward, chr...@gm... <mailto:
>> chr...@gm...>
>>
>> ** 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
>>
>
> --
> Michael Droettboom
> Science Software Branch
> Operations and Engineering Division
> Space Telescope Science Institute
> Operated by AURA for NASA
>
>
-- 
-- Jonathan Hayward, chr...@gm...
** 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
From: \Jonathan H. http://JonathansCorner.com\ <jon...@po...> - 2008年08月01日 17:57:07
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 access to ~root?
On Fri, Aug 1, 2008 at 11:38 AM, Jonathan Hayward,
http://JonathansCorner.com <jon...@po...> wrote:
> Tried that and reran it; I'm getting substantially the same stacktrace:
>
> 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
>
> It's /path/matplotlibrc and not /path/.matplotlibrc or anything like that?
>
>
> On Fri, Aug 1, 2008 at 10:51 AM, Michael Droettboom <md...@st...>wrote:
>
>> 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, chr...@gm... <mailto:
>>> chr...@gm...>
>>>
>>> ** 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
>>> Mat...@li...
>>> 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, chr...@gm...
>
> ** 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
>
-- 
-- Jonathan Hayward, chr...@gm...
** 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
From: eliben <el...@gm...> - 2008年08月01日 17:43:41
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 see for a demo script is "this file is in the public 
> domain". That is not exactly a "license", but it roughly
> means "use this however you want without worrying about
> any restrictions, not even attribution requirements".
> 
> I do not think the LGPL generally makes sense (literally) 
> for such scripts:
> http://www.gnu.org/licenses/lgpl.html
> 
> If public domain is uncomfortable,
> then perhaps MIT or BSD would be comfortable.
> <URL:http://www.opensource.org/licenses/mit-license.html>
> 
> Of course, s/he who has the copyright chooses the license.
> 
> Cheers,
> Alan Isaac
> 
Although we're markedly off-topic here, I want to mention that I've battled
with the question of licensing my code. It's documented here:
http://eli.thegreenplace.net/2006/04/13/choosing-an-open-source-license-for-my-code/
The choice of LGPL eventually stems from my desire to promote free software,
and prevent abuse. True, for demos it makes less sense than for full-blown
libraries, but still...
Consider this: the demo teaches someone how to make some interface/code
work. He got it for free, because I've placed my demo publicly online. But
he may want to incorporate it in his program, and hide from his users how he
does the thing the demo taught him, winning a competitive advantage. This
isn't fair, and LGPL prevents such use, while in general allowing one to use
the code in commercial applications.
Eli
-- 
View this message in context: http://www.nabble.com/more-demos-of-mpl-with-wxPython-tp18770262p18779533.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: Alan G I. <ai...@am...> - 2008年08月01日 17:04:50
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 in the public 
domain". That is not exactly a "license", but it roughly
means "use this however you want without worrying about
any restrictions, not even attribution requirements".
I do not think the LGPL generally makes sense (literally) 
for such scripts:
http://www.gnu.org/licenses/lgpl.html
If public domain is uncomfortable,
then perhaps MIT or BSD would be comfortable.
<URL:http://www.opensource.org/licenses/mit-license.html>
Of course, s/he who has the copyright chooses the license.
Cheers,
Alan Isaac
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/.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 access to ~root?
>
> On Fri, Aug 1, 2008 at 11:38 AM, Jonathan Hayward, 
> http://JonathansCorner.com <jon...@po... 
> <mailto:jon...@po...>> wrote:
>
> Tried that and reran it; I'm getting substantially the same
> stacktrace:
>
>
> 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
>
> It's /path/matplotlibrc and not /path/.matplotlibrc or anything
> like that?
>
>
> On Fri, Aug 1, 2008 at 10:51 AM, Michael Droettboom
> <md...@st... <mailto:md...@st...>> wrote:
>
> 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, chr...@gm...
> <mailto:chr...@gm...>
> <mailto:chr...@gm...
> <mailto:chr...@gm...>>
>
>
> ** 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=/
> <http://moblin-contest.org/redirect.php?banner_id=100&url=/>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> <mailto:Mat...@li...>
> 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, chr...@gm...
> <mailto:chr...@gm...>
>
> ** 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
>
>
>
>
> -- 
> -- Jonathan Hayward, chr...@gm... 
> <mailto:chr...@gm...>
>
> ** 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
-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
From: \Jonathan H. http://JonathansCorner.com\ <jon...@po...> - 2008年08月01日 16:56:51
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 access to ~root?
On Fri, Aug 1, 2008 at 11:38 AM, Jonathan Hayward,
http://JonathansCorner.com <jon...@po...> wrote:
> Tried that and reran it; I'm getting substantially the same stacktrace:
>
> 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
>
> It's /path/matplotlibrc and not /path/.matplotlibrc or anything like that?
>
>
> On Fri, Aug 1, 2008 at 10:51 AM, Michael Droettboom <md...@st...>wrote:
>
>> 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, chr...@gm... <mailto:
>>> chr...@gm...>
>>>
>>> ** 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
>>> Mat...@li...
>>> 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, chr...@gm...
>
> ** 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
>
-- 
-- Jonathan Hayward, chr...@gm...
** 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
From: \Jonathan H. http://JonathansCorner.com\ <jon...@po...> - 2008年08月01日 16:38:19
Tried that and reran it; I'm getting substantially the same stacktrace:
 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
It's /path/matplotlibrc and not /path/.matplotlibrc or anything like that?
On Fri, Aug 1, 2008 at 10:51 AM, Michael Droettboom <md...@st...> wrote:
> 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, chr...@gm... <mailto:
>> chr...@gm...>
>>
>> ** 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
>> Mat...@li...
>> 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, chr...@gm...
** 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
From: eliben <el...@gm...> - 2008年08月01日 16:29:30
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.
From: Alan G I. <ai...@am...> - 2008年08月01日 16:05:09
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.
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, chr...@gm... 
> <mailto:chr...@gm...>
>
> ** 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
> Mat...@li...
> 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
From: \Jonathan H. http://JonathansCorner.com\ <jon...@po...> - 2008年08月01日 15:25:47
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, chr...@gm...
** 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
From: \Jonathan H. http://JonathansCorner.com\ <jon...@po...> - 2008年08月01日 14:31:57
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 <md...@st...> 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 <jd...@gm... <mailto:
>> jd...@gm...>> wrote:
>>
>> On Thu, Jul 31, 2008 at 3:09 PM, Jonathan Hayward,
>> http://JonathansCorner.com <jon...@po...
>> <mailto:jon...@po...>> 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, chr...@gm... <mailto:
>> chr...@gm...>
>>
>> ** 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
>> Mat...@li...
>> 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, chr...@gm...
** 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
From: Ghupi <fg...@fr...> - 2008年08月01日 13:33:11
Hello,
with the following source code, in which show_function is called after a key
event, I have 2 problems :-/:
1) each new drawing (i.e. new call of show_function) leads to a indermediate
redrawing of the previous plots, making the program slow
2) the 'button_press_event', which prints xdata/ydata, always prints the
coordinates of the first plot (so as if the axes are not updated by calling
show_function).
Any ideas? :working:
Thanks in advance!
Frederik
class CanvasFrame(wx.Frame):
	def __init__(self, ):
		wx.Frame.__init__(self,None,-1,'',size=(644,555))
		
...
def show_function(self,xname,x,yname,y,bestbkgr,bestprm,filename,numscan):	
		from pylab import
plot,legend,title,xlabel,ylabel,show,close,figtext,savefig,clf
		
		self.frame=wx.Frame(self,-1)
 self.figure = figure()
 
 self.axes = self.figure.add_subplot(111)
		
		self.axes.plot(x,y,'k.')
		self.figure_canvas = FigureCanvas(self, -1, self.figure)
 
		self.sizer = wx.BoxSizer(wx.VERTICAL)
		self.sizer.Add(self.figure_canvas, 1, wx.EXPAND|wx.CENTER|wx.GROW)
		self.SetSizer(self.sizer)
		self.Fit()
		self.figure_canvas.mpl_connect('button_press_event', self.click)
-- 
View this message in context: http://www.nabble.com/Problem-with-redrawing-of-plots-tp18774397p18774397.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
From: S. N. <sor...@gm...> - 2008年08月01日 13:10:12
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
From: Michael D. <md...@st...> - 2008年08月01日 12:50:34
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 <jd...@gm... 
> <mailto:jd...@gm...>> wrote:
>
> On Thu, Jul 31, 2008 at 3:09 PM, Jonathan Hayward,
> http://JonathansCorner.com <jon...@po...
> <mailto:jon...@po...>> 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, chr...@gm... 
> <mailto:chr...@gm...>
>
> ** 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
> Mat...@li...
> 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
From: eliben <el...@gm...> - 2008年08月01日 08:32:17
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.
1 message has been excluded from this view by a project administrator.

Showing results of 27

1 2 > >> (Page 1 of 2)
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /