SourceForge logo
SourceForge logo
Menu

matplotlib-devel — matplotlib developers

You can subscribe to this list here.

2003 Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
(1)
Nov
(33)
Dec
(20)
2004 Jan
(7)
Feb
(44)
Mar
(51)
Apr
(43)
May
(43)
Jun
(36)
Jul
(61)
Aug
(44)
Sep
(25)
Oct
(82)
Nov
(97)
Dec
(47)
2005 Jan
(77)
Feb
(143)
Mar
(42)
Apr
(31)
May
(93)
Jun
(93)
Jul
(35)
Aug
(78)
Sep
(56)
Oct
(44)
Nov
(72)
Dec
(75)
2006 Jan
(116)
Feb
(99)
Mar
(181)
Apr
(171)
May
(112)
Jun
(86)
Jul
(91)
Aug
(111)
Sep
(77)
Oct
(72)
Nov
(57)
Dec
(51)
2007 Jan
(64)
Feb
(116)
Mar
(70)
Apr
(74)
May
(53)
Jun
(40)
Jul
(519)
Aug
(151)
Sep
(132)
Oct
(74)
Nov
(282)
Dec
(190)
2008 Jan
(141)
Feb
(67)
Mar
(69)
Apr
(96)
May
(227)
Jun
(404)
Jul
(399)
Aug
(96)
Sep
(120)
Oct
(205)
Nov
(126)
Dec
(261)
2009 Jan
(136)
Feb
(136)
Mar
(119)
Apr
(124)
May
(155)
Jun
(98)
Jul
(136)
Aug
(292)
Sep
(174)
Oct
(126)
Nov
(126)
Dec
(79)
2010 Jan
(109)
Feb
(83)
Mar
(139)
Apr
(91)
May
(79)
Jun
(164)
Jul
(184)
Aug
(146)
Sep
(163)
Oct
(128)
Nov
(70)
Dec
(73)
2011 Jan
(235)
Feb
(165)
Mar
(147)
Apr
(86)
May
(74)
Jun
(118)
Jul
(65)
Aug
(75)
Sep
(162)
Oct
(94)
Nov
(48)
Dec
(44)
2012 Jan
(49)
Feb
(40)
Mar
(88)
Apr
(35)
May
(52)
Jun
(69)
Jul
(90)
Aug
(123)
Sep
(112)
Oct
(120)
Nov
(105)
Dec
(116)
2013 Jan
(76)
Feb
(26)
Mar
(78)
Apr
(43)
May
(61)
Jun
(53)
Jul
(147)
Aug
(85)
Sep
(83)
Oct
(122)
Nov
(18)
Dec
(27)
2014 Jan
(58)
Feb
(25)
Mar
(49)
Apr
(17)
May
(29)
Jun
(39)
Jul
(53)
Aug
(52)
Sep
(35)
Oct
(47)
Nov
(110)
Dec
(27)
2015 Jan
(50)
Feb
(93)
Mar
(96)
Apr
(30)
May
(55)
Jun
(83)
Jul
(44)
Aug
(8)
Sep
(5)
Oct
Nov
(1)
Dec
(1)
2016 Jan
Feb
Mar
(1)
Apr
May
Jun
(2)
Jul
Aug
(3)
Sep
(1)
Oct
(3)
Nov
Dec
2017 Jan
Feb
(5)
Mar
Apr
May
Jun
Jul
(3)
Aug
Sep
(7)
Oct
Nov
Dec
2018 Jan
Feb
Mar
Apr
May
Jun
Jul
(2)
Aug
Sep
Oct
Nov
Dec
S M T W T F S



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




Showing results of 97

<< < 1 2 3 4 > >> (Page 2 of 4)
From: Albert C. <mat...@ml...> - 2006年02月26日 19:32:53
Attachments: a
On Sun, Feb 26, 2006 at 01:00:07AM -0600, Albert Chin wrote:
> On Fri, Feb 24, 2006 at 12:15:29AM -0600, Albert Chin wrote:
> > On Wed, Feb 22, 2006 at 09:24:38PM -0600, Albert Chin wrote:
> > > 
> > > The failure occurs when displaying the data. I've also tried
> > > anim_tk.py to determine if it was a problem with the GTK+ backend but
> > > anim_tk.py fails in the same way.
> > 
> > I did some more digging and the "terminate called after throwing an
> > instance ..." error is coming from G++. Maybe something funk with C++
> > exceptions on HP/PA that isn't triggered on HP/IA.
> 
> The throw Py::RuntimeError is coming from src/ft2font.cpp. There's a
> global that holds information for FreeType libraries:
> FT_Library _ft2Library;
> 
> This is initialized when Python loads the module. That works fine.
> However, sometime after, _ft2Library is reinitialized to 0. This
> doesn't occur the _first_ time matplotlib is run. Only on subsequent
> runs when it reads in the font cache file does this occur. Odd.
Ok, I think I found the problem. src/ft2font.cpp is used by
_nc_backend_agg.so and ft2font.so. They _both_ have a global
_ft2Library. This isn't good. On HP-UX/PA, it seems the _ft2Library
from ft2font.so is used when matplotlib programs are run first.
However, after the cache file is generated, it seems to start using
the _ft2Library from ft2font.so but then when 'FT2Font()' is called,
the _ft2Library from _nc_backend_agg.so is used.
What we really want is just one _ft2Library, the one from
src/ft2font.cpp. src/_nc_backend_agg.cpp does need the functions in
src/ft2font.cpp but I think _nc_backend_agg.so should depend on
ft2font.so, not load a private copy of src/ft2font.cpp and expect
cross-platform behavior wrt a duplicate global _ft2Library.
Another alternative is to have anything requiring src/ft2font.cpp to
simply 'import ft2font'. For the moment, I've remove src/ft2font.cpp
from all modules except ft2font.so. This seems to work. Patch
attached. Should I submit patches to PyImport_ImportModule("ft2font")
as well?
-- 
albert chin (ch...@th...)
From: Jouni K S. <jk...@ik...> - 2006年02月26日 19:32:07
John Hunter <jdh...@ac...> 
writes:
> There have been a lot of changes to the rc file of late, and I fear
> these may be getting lost on users. It is not uncommon for me to see
> someone launch mpl and get a host of rc warnings.
It would probably help if the warnings did not merely say
"Unrecognized key bar in group foo" but something like "Option foo.bar
has been replaced by baz.quux, see release notes of version 0.87" so
the user would have some idea how to fix the problem. This wouldn't
probably require very much effort, if you are going to record the
changes somewhere in any case.
Ted Drain suggested having a version number in the rc file. How about
showing the user a brief list of release notes for all versions since
the one mentioned in the rc file?
-- 
Jouni
From: Ted D. <ted...@jp...> - 2006年02月26日 18:54:34
Hmm - I just ran your test and everything seems to work fine. I'm using 
MPL 0.85 and Qt 3.3.5. I did a diff of backend_qt.py and backend_qtagg.py 
from 0.85 to the current CVS repository and they're identical. So I'm not 
sure what could be going on...
Ted
At 10:30 AM 2/26/2006, Darren Dale wrote:
>On Sunday 26 February 2006 1:06 pm, Ted Drain wrote:
> > Darren,
> > I'll have someone take a look at it soon. We're right in the middle of a
> > big delivery so we don't really have a lot of time to spend on this right
> > now...
>
>Thanks, Ted. I'm not in a rush.
>
>I'm about to start my first python-based gui project, and want to use Qt. 
>I'll
>also continue to poke around at these problems myself as I find time.
>
>Darren
>
>
> > At 08:20 AM 2/26/2006, Darren Dale wrote:
> > >Respectfully: Is the QtAgg backend supported?
> > >
> > >On Saturday 18 February 2006 6:01 pm, Darren Dale wrote:
> > > > I'm having two problems with the QtAgg backend. If I do:
> > > > >>> from pylab import *
> > > > >>> plot([1,2])
> > > >
> > > > [<matplotlib.lines.Line2D instance at 0x2aaab1ead830>]
> > > >
> > > > >>> show()
> > > >
> > > > My figure window should be 8in x 6in, but instead it is 6in tall and as
> > > > wide as my screen will allow. So thats the first issue. The second is
> > > > this: if I close that window, and then do
> > > >
> > > > >>> plot([1,2])
> > > >
> > > > [<matplotlib.lines.Line2D instance at 0x2aaab1ebbcf8>]
> > > >
> > > > >>> show()
> > > >
> > > > I get the following traceback:
> > > >
> > > > Traceback (most recent call last):
> > > > File "<stdin>", line 1, in ?
> > > > File
> > > > "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_qt.py",
> > > > line 47, in show
> > > > manager.window.show()
> > > > RuntimeError: underlying C/C++ object has been deleted
> > > >
> > > > I'm using qt version 3.3.4, with cvs mpl 0.86.2, on a gentoo linux
> > > > system. The only nondefault rc setting is the choice of backend.
> > > >
> > > > Darren
> > > >
> > > >
> > > > -------------------------------------------------------
> > > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > > > files for problems? Stop! Download the new AJAX search engine that
> > > > makes searching your log files as easy as surfing the web. DOWNLOAD
> > > > SPLUNK!
> > > >
> > > > _______________________________________________
> > > > Matplotlib-devel mailing list
> > > > Mat...@li...
> > > > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> > >
> > >--
> > >Darren S. Dale, Ph.D.
> > >dd...@co...
> > >
> > >
> > >-------------------------------------------------------
> > >This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > > language that extends applications into web and mobile media. Attend the
> > > live webcast and join the prime developer group breaking into this new
> > > coding territory! _______________________________________________
> > >Matplotlib-devel mailing list
> > >Mat...@li...
> > >https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live
> > webcast and join the prime developer group breaking into this new coding
> > territory!
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > _______________________________________________
> > Matplotlib-devel mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>--
>Darren S. Dale, Ph.D.
>dd...@co...
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live webcast
>and join the prime developer group breaking into this new coding territory!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>_______________________________________________
>Matplotlib-devel mailing list
>Mat...@li...
>https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Ted D. <ted...@jp...> - 2006年02月26日 18:33:37
Something else that might be useful is to put a RC file version number in 
the RC file itself (i.e. a version on the set of RC inputs that are 
there). This would allow MPL to check the version number of the RC file 
the user is inputting against the current number in the software. At the 
least, this allows for an error/warning message telling someone that there 
input is out of date. If you're more ambitious, you can write RC file 
version converters so that older versions are auto-converted (and maybe 
even auto-updated) to the current version when used.
Ted
At 09:49 AM 2/26/2006, Darren Dale wrote:
>On Friday 24 February 2006 14:57, John Hunter wrote:
> > There have been a lot of changes to the rc file of late, and I fear
> > these may be getting lost on users. It is not uncommon for me to see
> > someone launch mpl and get a host of rc warnings.
> >
> > I think we should put these in API_CHANGES and announce them a little
> > more prominently in the release notes and on the user's list.
>
>I'm probably the guilty party here, although I have tried to make visible
>announcements on the users list and clear explanations in the CHANGELOG.
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live webcast
>and join the prime developer group breaking into this new coding territory!
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
>_______________________________________________
>Matplotlib-devel mailing list
>Mat...@li...
>https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Darren D. <dd...@co...> - 2006年02月26日 18:31:24
On Sunday 26 February 2006 1:06 pm, Ted Drain wrote:
> Darren,
> I'll have someone take a look at it soon. We're right in the middle of a
> big delivery so we don't really have a lot of time to spend on this right
> now...
Thanks, Ted. I'm not in a rush. 
I'm about to start my first python-based gui project, and want to use Qt. I'll 
also continue to poke around at these problems myself as I find time.
Darren
> At 08:20 AM 2/26/2006, Darren Dale wrote:
> >Respectfully: Is the QtAgg backend supported?
> >
> >On Saturday 18 February 2006 6:01 pm, Darren Dale wrote:
> > > I'm having two problems with the QtAgg backend. If I do:
> > > >>> from pylab import *
> > > >>> plot([1,2])
> > >
> > > [<matplotlib.lines.Line2D instance at 0x2aaab1ead830>]
> > >
> > > >>> show()
> > >
> > > My figure window should be 8in x 6in, but instead it is 6in tall and as
> > > wide as my screen will allow. So thats the first issue. The second is
> > > this: if I close that window, and then do
> > >
> > > >>> plot([1,2])
> > >
> > > [<matplotlib.lines.Line2D instance at 0x2aaab1ebbcf8>]
> > >
> > > >>> show()
> > >
> > > I get the following traceback:
> > >
> > > Traceback (most recent call last):
> > > File "<stdin>", line 1, in ?
> > > File
> > > "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_qt.py",
> > > line 47, in show
> > > manager.window.show()
> > > RuntimeError: underlying C/C++ object has been deleted
> > >
> > > I'm using qt version 3.3.4, with cvs mpl 0.86.2, on a gentoo linux
> > > system. The only nondefault rc setting is the choice of backend.
> > >
> > > Darren
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > > files for problems? Stop! Download the new AJAX search engine that
> > > makes searching your log files as easy as surfing the web. DOWNLOAD
> > > SPLUNK!
> > >
> > > _______________________________________________
> > > Matplotlib-devel mailing list
> > > Mat...@li...
> > > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> >
> >--
> >Darren S. Dale, Ph.D.
> >dd...@co...
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > language that extends applications into web and mobile media. Attend the
> > live webcast and join the prime developer group breaking into this new
> > coding territory! _______________________________________________
> >Matplotlib-devel mailing list
> >Mat...@li...
> >https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live
> webcast and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
-- 
Darren S. Dale, Ph.D.
dd...@co...
From: Ted D. <ted...@jp...> - 2006年02月26日 18:06:46
Darren,
I'll have someone take a look at it soon. We're right in the middle of a 
big delivery so we don't really have a lot of time to spend on this right 
now...
Ted
At 08:20 AM 2/26/2006, Darren Dale wrote:
>Respectfully: Is the QtAgg backend supported?
>
>On Saturday 18 February 2006 6:01 pm, Darren Dale wrote:
> > I'm having two problems with the QtAgg backend. If I do:
> > >>> from pylab import *
> > >>> plot([1,2])
> >
> > [<matplotlib.lines.Line2D instance at 0x2aaab1ead830>]
> >
> > >>> show()
> >
> > My figure window should be 8in x 6in, but instead it is 6in tall and as
> > wide as my screen will allow. So thats the first issue. The second is this:
> > if I close that window, and then do
> >
> > >>> plot([1,2])
> >
> > [<matplotlib.lines.Line2D instance at 0x2aaab1ebbcf8>]
> >
> > >>> show()
> >
> > I get the following traceback:
> >
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in ?
> > File
> > "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_qt.py",
> > line 47, in show
> > manager.window.show()
> > RuntimeError: underlying C/C++ object has been deleted
> >
> > I'm using qt version 3.3.4, with cvs mpl 0.86.2, on a gentoo linux system.
> > The only nondefault rc setting is the choice of backend.
> >
> > Darren
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> > files for problems? Stop! Download the new AJAX search engine that makes
> > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> >
> > _______________________________________________
> > Matplotlib-devel mailing list
> > Mat...@li...
> > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>--
>Darren S. Dale, Ph.D.
>dd...@co...
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by xPML, a groundbreaking scripting language
>that extends applications into web and mobile media. Attend the live webcast
>and join the prime developer group breaking into this new coding territory!
>_______________________________________________
>Matplotlib-devel mailing list
>Mat...@li...
>https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: John H. <jdh...@ac...> - 2006年02月26日 17:54:35
>>>>> "Darren" == Darren Dale <dd...@co...> writes:
 Darren> I'm probably the guilty party here, although I have tried
 Darren> to make visible announcements on the users list and clear
 Darren> explanations in the CHANGELOG.
You're not alone -- I am guilty too, eg splitting out the xtick and
ytick settings... I just notice more and more that people in my group
are getting these kinds of warnings, so I thought it was worht
mentioning.
JDH
From: Darren D. <dd...@co...> - 2006年02月26日 17:48:44
On Friday 24 February 2006 14:57, John Hunter wrote:
> There have been a lot of changes to the rc file of late, and I fear
> these may be getting lost on users. It is not uncommon for me to see
> someone launch mpl and get a host of rc warnings.
>
> I think we should put these in API_CHANGES and announce them a little
> more prominently in the release notes and on the user's list.
I'm probably the guilty party here, although I have tried to make visible 
announcements on the users list and clear explanations in the CHANGELOG.
>>>>> "Eric" == Eric Firing <ef...@ha...> writes:
 Eric> John, I updated from CVS, made a one-line change to
 Eric> contour.py to add alpha support, and tested using
 Eric> contour_demo.py from bash shell--and found that with linux
 Eric> default gtk-agg backend, the gtk.main() doesn't return when
 Eric> the plot window is closed. I have to Ctl-C to get out.
Steve's recent change should fix your problem -- it was my bad.
JDH
From: Darren D. <dd...@co...> - 2006年02月26日 16:21:08
Respectfully: Is the QtAgg backend supported?
On Saturday 18 February 2006 6:01 pm, Darren Dale wrote:
> I'm having two problems with the QtAgg backend. If I do:
> >>> from pylab import *
> >>> plot([1,2])
>
> [<matplotlib.lines.Line2D instance at 0x2aaab1ead830>]
>
> >>> show()
>
> My figure window should be 8in x 6in, but instead it is 6in tall and as
> wide as my screen will allow. So thats the first issue. The second is thi=
s:
> if I close that window, and then do
>
> >>> plot([1,2])
>
> [<matplotlib.lines.Line2D instance at 0x2aaab1ebbcf8>]
>
> >>> show()
>
> I get the following traceback:
>
> Traceback (most recent call last):
> =A0 File "<stdin>", line 1, in ?
> =A0 File
> "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_qt.py",
> line 47, in show
> =A0 =A0 manager.window.show()
> RuntimeError: underlying C/C++ object has been deleted
>
> I'm using qt version 3.3.4, with cvs mpl 0.86.2, on a gentoo linux system.
> The only nondefault rc setting is the choice of backend.
>
> Darren
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log
> files for problems? Stop! Download the new AJAX search engine that makes
> searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=103432&bid#0486&dat=121642
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
=2D-=20
Darren S. Dale, Ph.D.
dd...@co...
From: Darren D. <dd...@co...> - 2006年02月26日 14:33:08
On Saturday 25 February 2006 8:01 pm, Andrew Straw wrote:
> Hi All,
>
> It looks like SourceForge has (finally) adopted site-wide subversion
> repositories: http://sourceforge.net/docs/E09/
>
> What do people feel about migrating from CVS to svn? SourceForge
> apparently even has an automated tool to do so. They also state that
> there will be no more delays between developer access and anonymous access.
>
> Personally I'm +1 on switching -- matplotlib is the only project I keep
> up with that still uses CVS.
+1 for switching.
From: Albert C. <mat...@ml...> - 2006年02月26日 07:00:12
On Fri, Feb 24, 2006 at 12:15:29AM -0600, Albert Chin wrote:
> On Wed, Feb 22, 2006 at 09:24:38PM -0600, Albert Chin wrote:
> > 
> > The failure occurs when displaying the data. I've also tried
> > anim_tk.py to determine if it was a problem with the GTK+ backend but
> > anim_tk.py fails in the same way.
> 
> I did some more digging and the "terminate called after throwing an
> instance ..." error is coming from G++. Maybe something funk with C++
> exceptions on HP/PA that isn't triggered on HP/IA.
The throw Py::RuntimeError is coming from src/ft2font.cpp. There's a
global that holds information for FreeType libraries:
 FT_Library _ft2Library;
This is initialized when Python loads the module. That works fine.
However, sometime after, _ft2Library is reinitialized to 0. This
doesn't occur the _first_ time matplotlib is run. Only on subsequent
runs when it reads in the font cache file does this occur. Odd.
-- 
albert chin (ch...@th...)
From: Andrew S. <str...@as...> - 2006年02月26日 03:18:23
I can't speak about switchers using the SourceForge site, since it's
only been recently they've offered subversion. Here are various projects
I know about and their histories:
Python - switched to svn from cvs some time ago, (I think) dropping
SourceForge hosting of their repository in the process. I'm not close to
the development process, but as an occasional source-tree grabber and
c.l.py reader, I didn't hear of any issues.
numpy/scipy - switched to svn from cvs several months ago (September?).
there were some initial problems converting the history with the cvs2svn
script, but I think they were worked out, perhaps with the help of the
subversion developers. as far as I know, there have been no issues with
svn itself once the history was converted.
ipython - I think they are very pleased with subversion. They're
maintaining one branch and actively developing next generation ipython
(what will hopefully become v1) in another.
Personally, the biggest win for me with subversion is that I can do "svn
diff" and it's nearly instant -- no network access is needed. It would
also be nice to finally be rid of the asynchronous developer vs.
anonymous access that sourceforge's cvs solution entails.
Cheers!
Andrew
Eric Firing wrote:
> Andrew Straw wrote:
>
>> Hi All,
>>
>> It looks like SourceForge has (finally) adopted site-wide subversion
>> repositories: http://sourceforge.net/docs/E09/
>>
>> What do people feel about migrating from CVS to svn? SourceForge
>> apparently even has an automated tool to do so. They also state that
>> there will be no more delays between developer access and anonymous
>> access.
>>
>> Personally I'm +1 on switching -- matplotlib is the only project I keep
>> up with that still uses CVS.
>>
>> Cheers!
>> Andrew
>
>
> Andrew,
>
> I don't mind switching; I installed svn on my main machine some time
> ago so I could grab numpy, so I presume that using it for mpl will not
> be difficult. Do you know what the experience has been in other
> projects that have switched? Everything smooth? Or a week or two of
> chaos?
>
> Eric
From: Eric F. <ef...@ha...> - 2006年02月26日 02:47:10
Andrew Straw wrote:
> Hi All,
> 
> It looks like SourceForge has (finally) adopted site-wide subversion
> repositories: http://sourceforge.net/docs/E09/
> 
> What do people feel about migrating from CVS to svn? SourceForge
> apparently even has an automated tool to do so. They also state that
> there will be no more delays between developer access and anonymous access.
> 
> Personally I'm +1 on switching -- matplotlib is the only project I keep
> up with that still uses CVS.
> 
> Cheers!
> Andrew
Andrew,
I don't mind switching; I installed svn on my main machine some time ago 
so I could grab numpy, so I presume that using it for mpl will not be 
difficult. Do you know what the experience has been in other projects 
that have switched? Everything smooth? Or a week or two of chaos?
Eric
Eric Firing wrote:
> John,
> 
> I updated from CVS, made a one-line change to contour.py to add alpha 
> support, and tested using contour_demo.py from bash shell--and found 
> that with linux default gtk-agg backend, the gtk.main() doesn't return 
> when the plot window is closed. I have to Ctl-C to get out.
> 
> Eric
John,
The following patch fixes the problem for me, and makes sense to me:
Index: backend_gtk.py
===================================================================
RCS file: 
/cvsroot/matplotlib/matplotlib/lib/matplotlib/backends/backend_gtk.py,v
retrieving revision 1.123
diff -u -r1.123 backend_gtk.py
--- backend_gtk.py 24 Feb 2006 20:00:28 -0000 1.123
+++ backend_gtk.py 26 Feb 2006 02:30:42 -0000
@@ -76,8 +76,8 @@
 manager.window.show()
 if mainloop and gtk.main_level() == 0:
- gtk.main()
 show._mainloop = True
+ gtk.main()
 show._mainloop = False
 def new_figure_manager(num, *args, **kwargs):
You have show._mainloop = True after the call to gtk.main(), but that 
doesn't return; when the windows are deleted, the mainloop is still 
running but the flag has not been set, so deleting the last window does 
not end the loop. So the obvious solution (above) is to set the flag 
before calling gtk.main()
I was about to simply make the change, but decided to leave it to you, 
since I don't understand the bug you were trying to fix in the first 
place. Maybe some sort of locking is actually needed to make sure 
nothing unexpected can happen in another thread between the setting of 
the flag and the call to gtk.main().
Eric
From: Andrew S. <str...@as...> - 2006年02月26日 01:01:15
Hi All,
It looks like SourceForge has (finally) adopted site-wide subversion
repositories: http://sourceforge.net/docs/E09/
What do people feel about migrating from CVS to svn? SourceForge
apparently even has an automated tool to do so. They also state that
there will be no more delays between developer access and anonymous access.
Personally I'm +1 on switching -- matplotlib is the only project I keep
up with that still uses CVS.
Cheers!
Andrew
John,
I updated from CVS, made a one-line change to contour.py to add alpha 
support, and tested using contour_demo.py from bash shell--and found 
that with linux default gtk-agg backend, the gtk.main() doesn't return 
when the plot window is closed. I have to Ctl-C to get out.
Eric
From: John H. <jdh...@ac...> - 2006年02月24日 20:06:55
>>>>> "David" == David TREMOUILLES <dav...@gm...> writes:
 >>> 2006年2月24日, David Huard <dav...@gm... >: What if I
 >>> want it to be non-interactive ? I want to save graphics
 >>> directly to a file from a script, without them being
 >>> displayed. It's weird that in this case close() crashes the
 >>> whole thing.
 David> Yes your wright the script have to work in non interactive
 David> mode. (I was just trying to give an explanation to Emmanuel
 David> problem). The following script should work (but it crashes
 David> like Emmanuel reported):
 David> #!/usr/bin/python import matplotlib import pylab #Turn off
 David> interactive mode matplotlib.interactive(False) #plot figure
 David> 1 pylab.figure() pylab.plot([1,2,3],[1,2,3])
 David> pylab.savefig("test_pylab1.png") pylab.close() #plot figure
 David> 2 pylab.figure() pylab.plot([1,2,3],[1,2,3])
 David> pylab.savefig("test_pylab2.png") pylab.close()
This is a bug and I fixed it in CVS (Steve take a look and see if you
agree with the show._mainloop approach) but basically you don't want
to use matplotlib this way.
If you do not want the figure to pop-up, that is you only want to
create a PNG and move on, just use the Agg backend rather than GTK*.
Eg
python myscript.py -dAgg
The problem you experienced arose because you closed all the figures
before you called show in non-interactive mode. For a GUI this makes
no sense, because you are telling the GUI to close all the windows
before it shows any of them. 
I fixed the GTK backend to not try and quit gtk before starting it :-)
In summary, I recommend:
 * in non-interactive mode with a GUI backend, always end your script
 with show. This starts the GUI mainloop. Do not close all your
 figures before you call show.
 * if you don't want an image to pop up, use non-interactive mode,
 and a non-GUI backend, and show is not required but it doesn't
 hurt either.
JDH
From: John H. <jdh...@ac...> - 2006年02月24日 19:57:27
There have been a lot of changes to the rc file of late, and I fear
these may be getting lost on users. It is not uncommon for me to see
someone launch mpl and get a host of rc warnings.
I think we should put these in API_CHANGES and announce them a little
more prominently in the release notes and on the user's list.
Cheers,
JDH
From: Eric F. <ef...@ha...> - 2006年02月24日 19:30:55
Jeff,
I am copying this to John and Charlie so they will know that all known 
imshow-related problems have been resolved (correct?). (Also to the 
devel list, just in case.) This and the previous message were not copied 
to either of the lists.
What is the difference between numpy.ma and the other masked array 
implementations that caused the exception? Is this something that 
should be fixed in numpy.ma?
Thanks.
Eric
Jeff Whitaker wrote:
> Andrew Jaffe wrote:
> 
>>
>>> Andrew: (val-vmin)/float(vmax-vmin) should be equivalent to the 
>>> original, since I believe vmin and vmax are always scalars.
>>>
>>> BTW: you can trigger the numpy.ma/imshow problem by uncommenting the 
>>> 'colorbar(im)' line in the image_masked.py example. With the original
>>>
>>> result = (1.0/(vmax-vmin))*(val-vmin)
>>> line in colors.py, it will throw an exception with numpy 0.9.5, but
>>>
>>> result = (val-vmin)/float(vmax-vmin)
>>>
>>> works.
>>>
>>> -Jeff
>>
>>
>> Jeff,
>>
>> Great -- thanks!
>>
>> Will you commit this change to CVS?
>>
>> Andrew
>>
> 
> Done.
> 
> -Jeff
> 
From: David H. <dav...@gm...> - 2006年02月24日 19:24:26
Hi,
What one can do is :
f =3D figure(1)
... some figure
f.clear()
f =3D figure(1)
... another figure
f.clear()
However, it is only a work around, not an actual solution...
Cheers,
David
2006年2月24日, David TREMOUILLES <dav...@gm...>:
>
> >>2006年2月24日, David Huard <dav...@gm... >:
> >>What if I want it to be non-interactive ? I want to save graphics
> >>directly to a file from a script, without them being displayed. It'=
s
> >>weird that in this case close() crashes the whole thing.
>
> Yes your wright the script have to work in non interactive mode. (I was
> just trying to give an explanation to Emmanuel problem).
> The following script should work (but it crashes like Emmanuel reported)=
:
>
> #!/usr/bin/python
> import matplotlib
> import pylab
> #Turn off interactive mode
> matplotlib.interactive(False)
> #plot figure 1
> pylab.figure()
> pylab.plot([1,2,3],[1,2,3])
> pylab.savefig("test_pylab1.png")
> pylab.close()
> #plot figure 2
> pylab.figure()
> pylab.plot([1,2,3],[1,2,3])
> pylab.savefig("test_pylab2.png")
> pylab.close()
>
> Second figure cannot be created due to the crash.
>
> We need the help of matplotlib Gurus !
>
> Regards,
>
> David
>
>
>
> 2006年2月24日, David Huard <dav...@gm...>:
> > What if I want it to be non-interactive ? I want to save graphics
> > directly to a file from a script, without them being displayed. It's
> > weird that in this case close() crashes the whole thing.
> >
> > David
> >
> > 2006年2月23日, David TREMOUILLES < dav...@gm...>:
> > > Could that be because interactive mode was set in your previous insta=
ll
> ?
> > > (in .matplotlibrc file)
> > > if I try:
> > >
> > > #!/usr/bin/python
> > > import matplotlib
> > > import pylab
> > > matplotlib.interactive(True)
> > > pylab.figure()
> > > pylab.close()
> > >
> > > Then it works...
> > > Hope this could help you...
> > >
> > > David
> > >
> > > 2006年2月23日, Emmanuel Pecontal <pec...@ob...>:
> > >
> > > > Hello,
> > > >
> > > > If I run the following script on my system (SuSE 10.0, matplotlib-0=
.87
> but
> > > > same behaviour with 0.86):
> > > >
> > > > #!/usr/bin/python
> > > >
> > > > import matplotlib
> > > > import pylab
> > > >
> > > > pylab.figure()
> > > > pylab.close ()
> > > >
> > > > It crashes with the following error message:
> > > >
> > > > Traceback (most recent call last):
> > > > File "./tmp.py", line 8, in ?
> > > > pylab.close()
> > > > File
> > > "/usr/lib/python2.4/site-packages/matplotlib/pylab.py",
> > > line 768, in
> > > > close
> > > > else: _pylab_helpers.Gcf.destroy(figManager.num)
> > > > File
> > >
> "/usr/lib/python2.4/site-packages/matplotlib/_pylab_helpers.py",
> > > line
> > > > 28, in destroy
> > > > figManager.destroy()
> > > > File
> > >
> "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
> > > > line 456, in destroy
> > > > gtk.main_quit()
> > > > RuntimeError: called outside of a mainloop
> > > >
> > > > Does someone has an idea of the problem?
> > > > I didn't have this kind of problem with my SuSE 9.3 and
> matplotlib-0.85
> > > >
> > > > --
> > > > Emmanuel P=E9contal
> > > >
> > > > CRAL - Observatoire de Lyon
> > > > 9, Av. Charles Andre
> > > > F-69561 Saint Genis Laval Cedex
> > > >
> > > > tel (33) (0)4.78.86.83.76 - fax (33) (0)4.78.86.83.86
> > > >
> > > > email : pec...@ob...
> > > >
> > >
> > >
> >
>
>
From: David T. <dav...@gm...> - 2006年02月24日 15:47:26
 >>2006年2月24日, David Huard <dav...@gm... >:
 >>What if I want it to be non-interactive ? I want to save graphics
 >>directly to a file from a script, without them being displayed. It's
 >>weird that in this case close() crashes the whole thing.
Yes your wright the script have to work in non interactive mode. (I was jus=
t
trying to give an explanation to Emmanuel problem).
The following script should work (but it crashes like Emmanuel reported):
#!/usr/bin/python
import matplotlib
import pylab
#Turn off interactive mode
matplotlib.interactive(False)
#plot figure 1
pylab.figure()
pylab.plot([1,2,3],[1,2,3])
pylab.savefig("test_pylab1.png")
pylab.close()
#plot figure 2
pylab.figure()
pylab.plot([1,2,3],[1,2,3])
pylab.savefig("test_pylab2.png")
pylab.close()
Second figure cannot be created due to the crash.
We need the help of matplotlib Gurus !
Regards,
David
2006年2月24日, David Huard <dav...@gm...>:
>
> What if I want it to be non-interactive ? I want to save graphics
> directly to a file from a script, without them being displayed. It's
> weird that in this case close() crashes the whole thing.
>
> David
>
> 2006年2月23日, David TREMOUILLES < dav...@gm...>:
> > Could that be because interactive mode was set in your previous install
> ?
> > (in .matplotlibrc file)
> > if I try:
> >
> > #!/usr/bin/python
> > import matplotlib
> > import pylab
> > matplotlib.interactive(True)
> > pylab.figure()
> > pylab.close()
> >
> > Then it works...
> > Hope this could help you...
> >
> > David
> >
> > 2006年2月23日, Emmanuel Pecontal <pec...@ob...>:
> >
> > > Hello,
> > >
> > > If I run the following script on my system (SuSE 10.0, matplotlib-0.8=
7but
> > > same behaviour with 0.86):
> > >
> > > #!/usr/bin/python
> > >
> > > import matplotlib
> > > import pylab
> > >
> > > pylab.figure()
> > > pylab.close ()
> > >
> > > It crashes with the following error message:
> > >
> > > Traceback (most recent call last):
> > > File "./tmp.py", line 8, in ?
> > > pylab.close()
> > > File
> > "/usr/lib/python2.4/site-packages/matplotlib/pylab.py",
> > line 768, in
> > > close
> > > else: _pylab_helpers.Gcf.destroy(figManager.num)
> > > File
> > "/usr/lib/python2.4/site-packages/matplotlib/_pylab_helpers.py",
> > line
> > > 28, in destroy
> > > figManager.destroy()
> > > File
> > "/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
> > > line 456, in destroy
> > > gtk.main_quit()
> > > RuntimeError: called outside of a mainloop
> > >
> > > Does someone has an idea of the problem?
> > > I didn't have this kind of problem with my SuSE 9.3 and
> matplotlib-0.85
> > >
> > > --
> > > Emmanuel P=E9contal
> > >
> > > CRAL - Observatoire de Lyon
> > > 9, Av. Charles Andre
> > > F-69561 Saint Genis Laval Cedex
> > >
> > > tel (33) (0)4.78.86.83.76 - fax (33) (0)4.78.86.83.86
> > >
> > > email : pec...@ob...
> > >
> >
> >
>
From: Albert C. <mat...@ml...> - 2006年02月24日 06:15:32
On Wed, Feb 22, 2006 at 09:24:38PM -0600, Albert Chin wrote:
> 
> The failure occurs when displaying the data. I've also tried
> anim_tk.py to determine if it was a problem with the GTK+ backend but
> anim_tk.py fails in the same way.
I did some more digging and the "terminate called after throwing an
instance ..." error is coming from G++. Maybe something funk with C++
exceptions on HP/PA that isn't triggered on HP/IA.
-- 
albert chin (ch...@th...)
From: Albert C. <mat...@ml...> - 2006年02月23日 03:24:41
Attachments: output.1 output.2
On Wed, Feb 22, 2006 at 08:49:16PM -0600, John Hunter wrote:
> >>>>> "Albert" == Albert Chin <mat...@ml...> writes:
> 
> Albert> We've built 0.87 with Python 2.4.2/GCC 3.4.3 on Solaris,
> Albert> HP-UX, Tru64 UNIX, IRIX, and Redhat Linux. It works fine
> Albert> on all platforms except HP-UX/PA (HP-UX 11.23/IA64 works
> Albert> fine). Some of the examples, like two_scales.py, work fine
> Albert> if run once. However, with ~/.matplotlib/ttffont.cache
> Albert> existing, a second run of two_scales.py (or any other
> Albert> example), fails with the following: terminate called after
> Albert> throwing an instance of 'Py::RuntimeError'
> 
> Please clear the tex cache dir and then run the example both times
> with the --verbose-debug flag, and post the output along with the
> complete traceback.
~/tex.cache is empty.
 $ rm -rf ~/.matplotlib
 $ python two_scales.py --verbose-debug 2>&1 | tee /tmp/output.1
 $ python two_scales.py --verbose-debug 2>&1 | tee /tmp/output.2
The failure occurs when displaying the data. I've also tried
anim_tk.py to determine if it was a problem with the GTK+ backend but
anim_tk.py fails in the same way.
What do you mean by "traceback"? Stack trace from Python after the
error? None is given.
-- 
albert chin (ch...@th...)
From: John H. <jdh...@ac...> - 2006年02月23日 02:49:28
>>>>> "Albert" == Albert Chin <mat...@ml...> writes:
 Albert> We've built 0.87 with Python 2.4.2/GCC 3.4.3 on Solaris,
 Albert> HP-UX, Tru64 UNIX, IRIX, and Redhat Linux. It works fine
 Albert> on all platforms except HP-UX/PA (HP-UX 11.23/IA64 works
 Albert> fine). Some of the examples, like two_scales.py, work fine
 Albert> if run once. However, with ~/.matplotlib/ttffont.cache
 Albert> existing, a second run of two_scales.py (or any other
 Albert> example), fails with the following: terminate called after
 Albert> throwing an instance of 'Py::RuntimeError'
Please clear the tex cache dir and then run the example both times
with the --verbose-debug flag, and post the output along with the
complete traceback.
JDH
2 messages has been excluded from this view by a project administrator.

Showing results of 97

<< < 1 2 3 4 > >> (Page 2 of 4)
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 によって変換されたページ (->オリジナル) /