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



Showing 6 results of 6

From: Darren D. <dd...@co...> - 2007年01月15日 19:28:34
On Monday 15 January 2007 14:21, Nils Wagner wrote:
> On 2007年1月15日 14:03:47 -0500
>
> Darren Dale <dd...@co...> wrote:
> > Nils,
> >
> > Please don't post to matplotlib when you have problems
> >with svn-matplotlib.
> > Post to matplotlib-devel.
> >
> > Darren
>
> I have removed the build directory.
>
> The CHANGELOG has a new entry
>
> 2007年01月15日 src/_image.cpp combine buffer_argb32() and
> buffer_bgra32() into
> a new method color_conv(format) - SC
>
> I guess my installation problem is connected with that
> change. Do you agree ?
Yes, that was probably the cause.
From: Nils W. <nw...@ia...> - 2007年01月15日 19:21:31
On 2007年1月15日 14:03:47 -0500
 Darren Dale <dd...@co...> wrote:
> Nils,
>=20
> Please don't post to matplotlib when you have problems=20
>with svn-matplotlib.=20
> Post to matplotlib-devel.
>=20
> Darren
 =20
I have removed the build directory.
The CHANGELOG has a new entry
2007年01月15日 src/_image.cpp combine buffer_argb32() and=20
buffer_bgra32() into
 a new method color_conv(format) - SC
I guess my installation problem is connected with that
change. Do you agree ?
Nils
 =20
From: Fernando P. <fpe...@gm...> - 2007年01月15日 15:26:40
On 1/14/07, Steve Chaplin <ste...@ya...> wrote:
> Darren reported a "bug" in backend_gtkcairo.py which he has "fixed". My
> view is that the lines
> from matplotlib.backends import backend_cairo
> from matplotlib.backends.backend_gtk import *
> work fine when called from the Python prompt. They are using the
> absolute package path and are correct and should not be "fixed" to use
> relative imports (which is bad style). So if there is a bug it is
> elsewhere and from the traceback it looked like ipython is involved.
>
> The traceback shows that this code is being executed
> # a hack to keep old versions of ipython working with mpl
> if 'IPython.Shell' in sys.modules:
> new_figure_manager, draw_if_interactive, show = pylab_setup()
>
> which is ipython-specific code.
> I don't usually use IPython, but I installed it today and ran a few
> simple matplotlib plots with the GTKCairo backend and they worked OK! So
> I can't offer more info, perhaps Darren can produce a minimal test case
> to isolate the problem.
Those lines also work fine from an ipython prompt:
In [1]: from matplotlib.backends import backend_cairo
In [2]: from matplotlib.backends.backend_gtk import *
The point is that for some bizarre reason, /inside/ the
ipython/matplotlib initialization, Darren was seeing a problem. It
may very well be that the real culprit is ipython, but after looking
at the issue I can't see anything, and Darren also tried to understand
it and failed.
So given this, Darren found a solution by modifying matplotlib.
Unless you can suggest a proper fix, I think we'll have for now to
live with this, even if it's in principle not ideal. If none of us
can figure out the real problem, at least Darren's solution works, so
it's better than leaving the bug in place.
Cheers,
f
From: Steve C. <ste...@ya...> - 2007年01月15日 12:04:10
On Fri, 2007年01月12日 at 08:44 -0600, John Hunter wrote:
> >>>>> "Steve" == Steve Chaplin <ste...@ya...> writes:
> 
> Steve> I propose this new version of buffer_bgra32 (and
> Steve> buffer_argb32). I tested it with cairo and it seems to work
> Steve> OK.
> 
> This looks good -- please test it with one of the memleak scripts, eg
> a variant of units/memleak_hawaii.py to make sure everything is being
> cleaned up properly. If you feel motivated, please port these over to
> the other buffer methods. One way to do this cleanly would be to set
> up an enum of the agg pixel formats supported by agg::color_conv and
> then simply allow the user to pass in the pixel format desired. Ie,
> support 
> 
> color_conv_rgba32_to_abgr32
> color_conv_rgba32_to_argb32
> color_conv_rgba32_to_bgra32
> 
> in a single function with a single arg.
I've replaced buffer_argb32() and buffer_bgra32() with
Image::color_conv(format) and tested it for memory leaks and it seems
OK. I think this only affects the cairo backend, since the other
backends seem to use rgba and don't need to use a color conversion
method.
Steve
Send instant messages to your online friends http://au.messenger.yahoo.com 
From: Darren D. <dd...@co...> - 2007年01月15日 11:36:28
On Monday 15 January 2007 12:16 am, Steve Chaplin wrote:
> On Thu, 2007年01月11日 at 00:01 -0700, Fernando Perez wrote:
> > On 1/10/07, Steve Chaplin <ste...@ya...> wrote:
> > > On Mon, 2007年01月08日 at 11:24 -0500, Darren Dale wrote:
> > > > I had to alter the following lines from backend_gtkcairo, from
> > > >
> > > > import matplotlib.backends.backend_cairo as be_cairo
> > > > from matplotlib.backends.backend_gtk import *
> > > >
> > > > to
> > > >
> > > > import backend_cairo as be_cairo
> > > > from backend_gtk import *
> > > >
> > > > in order to prevent the following traceback:
> > > >
> > > > Traceback (most recent call last):
> > > > File "/usr/bin/ipython", line 27, in ?
> > > > IPython.Shell.start().mainloop()
> > > > File "/usr/lib64/python2.4/site-packages/IPython/Shell.py", line
> > > > 1034, in start
> > > > return shell(user_ns = user_ns)
> > > > File "/usr/lib64/python2.4/site-packages/IPython/Shell.py", line
> > > > 945, in __init__
> > > > shell_class=MatplotlibMTShell)
> > > > File "/usr/lib64/python2.4/site-packages/IPython/Shell.py", line
> > > > 622, in __init__
> > > > on_kill=[mainquit])
> > > > File "/usr/lib64/python2.4/site-packages/IPython/ipmaker.py", line
> > > > 90, in make_IPython
> > > > embedded=embedded,**kw)
> > > > File "/usr/lib64/python2.4/site-packages/IPython/Shell.py", line
> > > > 506, in __init__
> > > > user_ns,b2 = self._matplotlib_config(name,user_ns)
> > > > File "/usr/lib64/python2.4/site-packages/IPython/Shell.py", line
> > > > 397, in _matplotlib_config
> > > > from matplotlib import backends
> > > > File
> > > > "/usr/lib64/python2.4/site-packages/matplotlib/backends/__init__.py",
> > > > line 55, in ?
> > > > new_figure_manager, draw_if_interactive, show = pylab_setup()
> > > > File
> > > > "/usr/lib64/python2.4/site-packages/matplotlib/backends/__init__.py",
> > > > line 23, in pylab_setup
> > > > globals(),locals(),[backend_name])
> > > >
> > > > File
> > > > "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_gtkca
> > > >iro.py", line 11, in ?
> > > > import matplotlib.backends.backend_cairo as be_cairo
> > > > AttributeError: 'module' object has no attribute 'backends'
> > >
> > > The original matplotlib code is correct, you should be editing IPython
> > > and correcting their bug!
> >
> > Well, I'd be delighted to correct the ipython bug, if only I
> > understood exactly what the problem was... As far as I can see, that
> > code in ipython is simply calling
> >
> > # Initialize matplotlib to interactive mode always
> > import matplotlib
> > from matplotlib import backends
> >
> > inside a function (the _matplotlib_config method). I don't see a bug
> > in that, but if you provide some pointers, I'll be happy to fix any
> > issues that are on ipython's side of the fence.
>
> Darren reported a "bug" in backend_gtkcairo.py which he has "fixed". My
> view is that the lines
> from matplotlib.backends import backend_cairo
> from matplotlib.backends.backend_gtk import *
> work fine when called from the Python prompt. They are using the
> absolute package path and are correct and should not be "fixed" to use
> relative imports (which is bad style). So if there is a bug it is
> elsewhere and from the traceback it looked like ipython is involved.
>
> The traceback shows that this code is being executed
> # a hack to keep old versions of ipython working with mpl
> if 'IPython.Shell' in sys.modules:
> new_figure_manager, draw_if_interactive, show = pylab_setup()
>
> which is ipython-specific code.
> I don't usually use IPython, but I installed it today and ran a few
> simple matplotlib plots with the GTKCairo backend and they worked OK! So
> I can't offer more info, perhaps Darren can produce a minimal test case
> to isolate the problem.
They work ok now, after changing the import statement so that it doesnt rename 
backend_cairo to be_cairo in the gtkcairo namespace. I can't think of a more 
minimal example than the one I already provided: starting IPython without the 
pylab flag and importing matplotlib.backends.backend_gtkcairo. I looked at 
this for a couple hours last week, and was not able to determine whether it 
was an IPython bug or a matplotlib bug that is exposed by IPython's magic. I 
do agree that the absolute path imports are correct and are not the source of 
the problem. Since a workaround has been committed, I don't think I should 
spend more time on this issue (unless another problem emerges).
Darren
From: Steve C. <ste...@ya...> - 2007年01月15日 04:16:46
On Thu, 2007年01月11日 at 00:01 -0700, Fernando Perez wrote: 
> On 1/10/07, Steve Chaplin <ste...@ya...> wrote:
> > On Mon, 2007年01月08日 at 11:24 -0500, Darren Dale wrote:
> 
> > > I had to alter the following lines from backend_gtkcairo, from
> > >
> > > import matplotlib.backends.backend_cairo as be_cairo
> > > from matplotlib.backends.backend_gtk import *
> > >
> > > to
> > >
> > > import backend_cairo as be_cairo
> > > from backend_gtk import *
> > >
> > > in order to prevent the following traceback:
> > >
> > > Traceback (most recent call last):
> > > File "/usr/bin/ipython", line 27, in ?
> > > IPython.Shell.start().mainloop()
> > > File "/usr/lib64/python2.4/site-packages/IPython/Shell.py", line 1034, in
> > > start
> > > return shell(user_ns = user_ns)
> > > File "/usr/lib64/python2.4/site-packages/IPython/Shell.py", line 945, in
> > > __init__
> > > shell_class=MatplotlibMTShell)
> > > File "/usr/lib64/python2.4/site-packages/IPython/Shell.py", line 622, in
> > > __init__
> > > on_kill=[mainquit])
> > > File "/usr/lib64/python2.4/site-packages/IPython/ipmaker.py", line 90, in
> > > make_IPython
> > > embedded=embedded,**kw)
> > > File "/usr/lib64/python2.4/site-packages/IPython/Shell.py", line 506, in
> > > __init__
> > > user_ns,b2 = self._matplotlib_config(name,user_ns)
> > > File "/usr/lib64/python2.4/site-packages/IPython/Shell.py", line 397, in
> > > _matplotlib_config
> > > from matplotlib import backends
> > > File "/usr/lib64/python2.4/site-packages/matplotlib/backends/__init__.py",
> > > line 55, in ?
> > > new_figure_manager, draw_if_interactive, show = pylab_setup()
> > > File "/usr/lib64/python2.4/site-packages/matplotlib/backends/__init__.py",
> > > line 23, in pylab_setup
> > > globals(),locals(),[backend_name])
> > >
> > > File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_gtkcairo.py",
> > > line 11, in ?
> > > import matplotlib.backends.backend_cairo as be_cairo
> > > AttributeError: 'module' object has no attribute 'backends'
> >
> > The original matplotlib code is correct, you should be editing IPython
> > and correcting their bug!
> 
> Well, I'd be delighted to correct the ipython bug, if only I
> understood exactly what the problem was... As far as I can see, that
> code in ipython is simply calling
> 
> # Initialize matplotlib to interactive mode always
> import matplotlib
> from matplotlib import backends
> 
> inside a function (the _matplotlib_config method). I don't see a bug
> in that, but if you provide some pointers, I'll be happy to fix any
> issues that are on ipython's side of the fence.
Darren reported a "bug" in backend_gtkcairo.py which he has "fixed". My
view is that the lines
from matplotlib.backends import backend_cairo
from matplotlib.backends.backend_gtk import *
work fine when called from the Python prompt. They are using the
absolute package path and are correct and should not be "fixed" to use
relative imports (which is bad style). So if there is a bug it is
elsewhere and from the traceback it looked like ipython is involved.
The traceback shows that this code is being executed
# a hack to keep old versions of ipython working with mpl
if 'IPython.Shell' in sys.modules:
 new_figure_manager, draw_if_interactive, show = pylab_setup()
which is ipython-specific code.
I don't usually use IPython, but I installed it today and ran a few
simple matplotlib plots with the GTKCairo backend and they worked OK! So
I can't offer more info, perhaps Darren can produce a minimal test case
to isolate the problem.
Steve
Send instant messages to your online friends http://au.messenger.yahoo.com 

Showing 6 results of 6

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