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






Showing 8 results of 8

From: Fernando P. <fpe...@gm...> - 2010年10月04日 18:35:51
On Mon, Oct 4, 2010 at 6:13 AM, Michael Droettboom <md...@st...> wrote:
> The problem is when callbacks create cyclical references (which your
> example does not). If the Handler class in your example needed to
> update the figure or canvas in some way in the callback (which is a
> common usage pattern), that cyclical reference prevents either from
> being destroyed without running the cyclical garbage collector. And in
> that case, you can't write a __del__ method on the handler to explicitly
> disconnect the callbacks.
>> In any case, if my logic is flawed (quite likely, since I imagine M.
>> D. had a good look at this), it might be worth adding a
>>
>> .. warning::
>>
>> section about this pattern to the event docs:
>>
>> http://matplotlib.sourceforge.net/users/event_handling.html
>>
>> because the problem is subtle and hard to diagnose (I just noticed it
>> had also been reported recently
>> http://sourceforge.net/mailarchive/forum.php?thread_name=4C9B7793.5020908%40gmail.com&forum_name=matplotlib-devel).
>>
> True -- it's non-obvious and confusing. On the other hand, the user is
> no longer required to explicitly disconnect callbacks, which was the
> source of many other subtle and hard to diagnose problems within the
> matplotlib code itself.
>
> I'm still not completely happy with it, so I'd love to find a "third
> way" if there's anything anyone can suggest.
Thanks for your explanation, it makes complete sense.
I think it's OK, Eric just added a warning to the docs, which will go
a long ways towards making this less of a user trap. Given the
details you provided, I can't think of a generic way to handle these
cycles 100% automatically. Using weakrefs seems like the most
sensible solution, and users will just need to understand a little bit
more before using this functionality.
Event handling isn't raw beginner material in any case, so I don't
think it's a huge problem. And if someone ever devises a clever
solution to the problem, then great! But for now I think you can
safely ignore this further.
Regards,
f
From: Jason G. <jas...@cr...> - 2010年10月04日 15:37:52
 On 10/04/2010 09:38 AM, Benjamin Root wrote:
> On Sat, Oct 2, 2010 at 1:16 PM, 01d <ol...@gm... 
> <mailto:ol...@gm...>> wrote:
>
>
> Are developers of matplotlib planning to implement something like
> this:
> http://www.pyngl.ucar.edu/Examples/Images/ngl04p.2.png ?
> Thanks.
>
>
> That would be a nice feature to add. Would you like to file a feature 
> request on that?
>
> http://sourceforge.net/tracker/?group_id=80706
>
Also, it seems like mathematica has a very nice streamline plot 
function, for comparison:
http://reference.wolfram.com/mathematica/ref/StreamPlot.html
Jason
From: Jason G. <jas...@cr...> - 2010年10月04日 15:36:13
 On 10/04/2010 09:38 AM, Benjamin Root wrote:
> On Sat, Oct 2, 2010 at 1:16 PM, 01d <ol...@gm... 
> <mailto:ol...@gm...>> wrote:
>
>
> Are developers of matplotlib planning to implement something like
> this:
> http://www.pyngl.ucar.edu/Examples/Images/ngl04p.2.png ?
> Thanks.
>
>
> That would be a nice feature to add. Would you like to file a feature 
> request on that?
>
> http://sourceforge.net/tracker/?group_id=80706
I would also love to have streamlines implemented.
Note that there is a scikit that does similar things using line 
convolution integrals:
http://www.scipy.org/scipy/scikits/#vectorplot
(not streamlines, but it creates a texture which gives you the idea of 
where streamlines are).
Jason
From: DrDunk <dun...@uw...> - 2010年10月04日 15:29:52
Hi there,
I am a newcomer to this sort of thing, and inherited some Python code that
used matplotlib. I compiled the code as a windows executable, and sent it
out to my students.. Now, one of them is coming back to me with the error
you speak of.. (i.e. facefile problem with Vera.ttf)
Any hint on getting around this?
Maybe I need to give more info, however I am not sure what you might need..
Any help, gratefully accepted.
Benjamin Root-2 wrote:
> 
> Yes! Thank you!
> 
> As extra debugging info, the issue was happening regardless of me choosing
> GTK, GTKAgg, and others for backends.
> 
> Ben Root
> 
> On Thu, Jun 3, 2010 at 2:45 PM, John Hunter <jd...@gm...> wrote:
> 
> 
>>
>> Just a shot in the dark, but does it help to flush the font cache in
>> your .matplotlib dir?
>>
>> > rm -rf ~/.matplotlib/font*.cache
>>
>> JDH
>>
> 
> 
-- 
View this message in context: http://old.nabble.com/RuntimeError%3A-Could-not-open-facefile-tp28772066p29879230.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.
From: Benjamin R. <ben...@ou...> - 2010年10月04日 14:39:05
On Sat, Oct 2, 2010 at 1:16 PM, 01d <ol...@gm...> wrote:
>
> Are developers of matplotlib planning to implement something like this:
> http://www.pyngl.ucar.edu/Examples/Images/ngl04p.2.png ?
> Thanks.
>
That would be a nice feature to add. Would you like to file a feature
request on that?
http://sourceforge.net/tracker/?group_id=80706
Ben Root
From: Michael D. <md...@st...> - 2010年10月04日 13:37:37
On 10/04/2010 02:10 AM, Mitchell Jon Stanton-Cook wrote:
> Hi Andrew,
>
> Thanks for the reply.
>
> I do not want to force users of my software to have to download and
> install basemap. It's just overkill for a small Python program that I'm
> developing.
>
> Perhaps I'm best to try and use a PathPatch for the _gen_axes_patch
> _gen_axes_spines. Does anyone have any ideas?
> 
Yes -- you would need to make a custom shape, and PathPatch or Polygon 
(if straight line segments are sufficient) are probably the way to go.
Mike
> Regards
>
> Mitch
>
>
>
> On 04/10/10 06:10, Andrew Straw wrote:
> 
>> On 10/2/2010 8:33 PM, Mitchell Jon Stanton-Cook wrote:
>>
>> 
>>> Hello,
>>>
>>> I have been trying to modify the custom projection example
>>> (http://matplotlib.sourceforge.net/examples/api/custom_projection_example.html)
>>> to plot a Sanson Flamsteed Projection (Sinusoidal projection).
>>>
>>> 
>> Dear Mitchell,
>>
>> Can you use the 'sinu' projection in basemap? E.g.
>> basemap/examples/contour_demo.py figure 1.
>>
>> -Andrew
>>
>>
>> ------------------------------------------------------------------------------
>> Virtualization is moving to the mainstream and overtaking non-virtualized
>> environment for deploying applications. Does it make network security
>> easier or more difficult to achieve? Read this whitepaper to separate the
>> two and get a better understanding.
>> http://p.sf.net/sfu/hp-phase2-d2d
>> _______________________________________________
>> Matplotlib-devel mailing list
>> Mat...@li...
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>>
>> 
>
> ------------------------------------------------------------------------------
> Virtualization is moving to the mainstream and overtaking non-virtualized
> environment for deploying applications. Does it make network security
> easier or more difficult to achieve? Read this whitepaper to separate the
> two and get a better understanding.
> http://p.sf.net/sfu/hp-phase2-d2d
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 
-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
From: Michael D. <md...@st...> - 2010年10月04日 13:13:07
On 10/01/2010 02:01 PM, Fernando Perez wrote:
> Hey Ryan,
>
> On Fri, Oct 1, 2010 at 6:27 AM, Ryan May<rm...@gm...> wrote:
> 
>> On Fri, Oct 1, 2010 at 1:05 AM, Fernando Perez<fpe...@gm...> wrote:
>> 
>>> This manifested itself in some more complex MPL code that had multiple
>>> events not working when run inside ipython, but working OK outside of
>>> ipython. Fortunately, the small self-contained example demonstrates
>>> the problem even with ipython not being in the picture at all (the
>>> runs above were from the command line), so I think there is an issue
>>> in MPL proper.
>>>
>>> Sorry that I can't dig deeper into the code right now to look for a fix...
>>> 
>> Somewhere in the 1.0 development cycle, Michael modified the callback
>> code to take weak references to methods. The purpose was to eliminate
>> some "leaks" that were occurring because callback connections to
>> objects were keeping them around and the proper disconnects were not
>> made (much simpler fix than tracking down every mpl_connect and trying
>> to see where do disconnect). What you're seeing in your script is that
>> since you're not assigning the Handler object to anything, it's being
>> garbage collected. It works for me if I change the second to last line
>> to:
>>
>> h = Handler(f)
>> 
> Many thanks for the info, that helps a lot.
>
> I was wondering though, would we still have a leak if strong
> references are held in the canvas attribute? The canvas will be
> deleted when the figure goes away, so that should properly allow the
> callback references to be deleted, without deleting them early
> otherwise, no?
> 
The problem is when callbacks create cyclical references (which your 
example does not). If the Handler class in your example needed to 
update the figure or canvas in some way in the callback (which is a 
common usage pattern), that cyclical reference prevents either from 
being destroyed without running the cyclical garbage collector. And in 
that case, you can't write a __del__ method on the handler to explicitly 
disconnect the callbacks.
> In any case, if my logic is flawed (quite likely, since I imagine M.
> D. had a good look at this), it might be worth adding a
>
> .. warning::
>
> section about this pattern to the event docs:
>
> http://matplotlib.sourceforge.net/users/event_handling.html
>
> because the problem is subtle and hard to diagnose (I just noticed it
> had also been reported recently
> http://sourceforge.net/mailarchive/forum.php?thread_name=4C9B7793.5020908%40gmail.com&forum_name=matplotlib-devel).
> 
True -- it's non-obvious and confusing. On the other hand, the user is 
no longer required to explicitly disconnect callbacks, which was the 
source of many other subtle and hard to diagnose problems within the 
matplotlib code itself.
I'm still not completely happy with it, so I'd love to find a "third 
way" if there's anything anyone can suggest.
Mike
-- 
Michael Droettboom
Science Software Branch
Space Telescope Science Institute
Baltimore, Maryland, USA
From: Mitchell J. Stanton-C. <m.s...@uq...> - 2010年10月04日 06:10:43
Hi Andrew,
Thanks for the reply.
I do not want to force users of my software to have to download and 
install basemap. It's just overkill for a small Python program that I'm 
developing.
Perhaps I'm best to try and use a PathPatch for the _gen_axes_patch 
_gen_axes_spines. Does anyone have any ideas?
Regards
Mitch
On 04/10/10 06:10, Andrew Straw wrote:
> On 10/2/2010 8:33 PM, Mitchell Jon Stanton-Cook wrote:
> 
>> Hello,
>>
>> I have been trying to modify the custom projection example
>> (http://matplotlib.sourceforge.net/examples/api/custom_projection_example.html)
>> to plot a Sanson Flamsteed Projection (Sinusoidal projection).
>> 
> Dear Mitchell,
>
> Can you use the 'sinu' projection in basemap? E.g.
> basemap/examples/contour_demo.py figure 1.
>
> -Andrew
>
>
> ------------------------------------------------------------------------------
> Virtualization is moving to the mainstream and overtaking non-virtualized
> environment for deploying applications. Does it make network security
> easier or more difficult to achieve? Read this whitepaper to separate the
> two and get a better understanding.
> http://p.sf.net/sfu/hp-phase2-d2d
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
> 

Showing 8 results of 8

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