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


Showing 7 results of 7

From: John H. <jd...@gm...> - 2008年07月30日 21:38:25
On Wed, Jul 30, 2008 at 4:31 PM, Eric Bruning <eri...@gm...> wrote:
> I tried with the Tk backend, and I'm seeing the same problem as Eric F
> has with GTK. The problem seems to be with idle_event not getting
> triggered on some of the backends.
>
> The checkins having to do with idle_event from the end of June
> indicate that idle_event is still somewhat experimental.
>
> What's the current status of idle_event? Can I help in some way?
I was working on idle event, to make a backend neutral api for idle
processing, animation, etc... There was a particularly nasty problem
with tk since I had to do the threading calls myself and I am no
threading guru, so I reverted some of the changes, mainly because of
the problem of cross thread signal handling blocked the CTRL-C
interrupts. These changes were added in r5652
 r5652 | jdh2358 | 2008年06月23日 16:39:11 -0500 (2008年6月23日) | 1 line
 draft idle/timeout api
and subsequent refactoring
 r5653 | jdh2358 | 2008年06月23日 23:17:21 -0500 (2008年6月23日) | 1 line
 replaced idle handler with idle event
but then reverted when Nils reported the CTRL-C bug in
 r5655 | jdh2358 | 2008年06月24日 08:56:55 -0500 (2008年6月24日) | 1 line
 removed idle support from tkagg until I figure out interrupts
So the implementation is incomplete and tkagg needs to most work,
since for other GUIs it is fairly easy to pass through the native
enent handling. I am not sure what the problem is with GTK right now,
and haven't had a chance to look at it.
JDH
From: Eric B. <eri...@gm...> - 2008年07月30日 21:31:31
I tried with the Tk backend, and I'm seeing the same problem as Eric F
has with GTK. The problem seems to be with idle_event not getting
triggered on some of the backends.
The checkins having to do with idle_event from the end of June
indicate that idle_event is still somewhat experimental.
What's the current status of idle_event? Can I help in some way?
If idle_event can't be made robust, I'll need to look for another
method to address the following problem. When I close off the polygon,
I determined that I needed to fall back to the idle state to be able
to see the closed polygon. My code, itself triggered off a right mouse
click, was apparently blocking drawing to the screen. It is desirable
to see the closed polygon on screen before the polygon callback in the
event that the callback takes a long time.
Thanks,
Eric
From: John H. <jd...@gm...> - 2008年07月30日 17:31:01
On Wed, Jul 30, 2008 at 10:58 AM, Nils Wagner
<nw...@ia...> wrote:
> Sorry for the delay and thank you for your patience.
> Here is the output of the "never-ending story"
Could you try again with r5932
From: Nils W. <nw...@ia...> - 2008年07月30日 15:58:25
On 2008年7月29日 16:43:42 -0500
 "John Hunter" <jd...@gm...> wrote:
> On Tue, Jul 29, 2008 at 4:38 PM, Paul Kienzle 
><pki...@ni...> wrote:
> 
>> Okay, how about
>> if not hasattr(self,'IsVisible'):
>> self.IsVisible = lambda self: True
>> in __init__
>>
>> That way it will always think it is visible.
> 
> OK, Nils, I committed a minor variant of that in r5926. 
> Test again...
> 
> JDH
Hi John,
Sorry for the delay and thank you for your patience.
Here is the output of the "never-ending story"
Traceback (most recent call last):
 File 
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", 
line 1099, in _onPaint
 self.draw(drawDC=drawDC)
 File 
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wxagg.py", 
line 64, in draw
 self.gui_repaint(drawDC=drawDC)
 File 
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", 
line 1000, in gui_repaint
 if self.IsShownOnScreen():
TypeError: <lambda>() takes exactly 1 argument (0 given)
Traceback (most recent call last):
 File 
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", 
line 1101, in _onPaint
 self.gui_repaint(drawDC=drawDC)
 File 
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_wx.py", 
line 1000, in gui_repaint
 if self.IsShownOnScreen():
TypeError: <lambda>() takes exactly 1 argument (0 given)
 
BTW, the entries are identical for both revisions.
Is that intended ?
r5923 | jdh2358 | 2008年07月29日 20:01:16 +0200 (Di, 29 Jul 
2008) | 1 line
special case contains test for degenerate rectangle
------------------------------------------------------------------------
r5922 | jdh2358 | 2008年07月29日 19:47:50 +0200 (Di, 29 Jul 
2008) | 1 line
special case contains test for degenerate rectangle
From: Eric B. <eri...@gm...> - 2008年07月30日 11:14:35
On Tue, Jul 29, 2008 at 11:12 PM, Eric Firing <ef...@ha...> wrote:
> Eric Bruning wrote:
>>
>> On Tue, Jul 29, 2008 at 10:53 PM, Eric Firing <ef...@ha...> wrote:
>>>
>>> Eric Bruning wrote:
>
>>> I gave it a quick try with gtk backend. The polygon is drawn based on
>>> clicks, but nothing gets printed. Is this expected?
>>
>> That is unexpected. The callback should change the color of the
>> lassoed dots (from green to blue, for my default colormap) and print
>> the verts, the coords of the lassoed points, and the 'charge' array.
>>
>> Try adding a print in do_callback. One possibility is that the trigger
>> on idle_event isn't working.
>
> do_callback is not getting run.
>
> Eric
On Wed, Jul 30, 2008 at 5:40 AM, Mark Bakker <ma...@gm...> wrote:
> Hello Eric -
>
> I am interested. I wouldn't mind seeing it in mpl, but before we get there
> is there a chance you may want to share the code with me? I presume it is
> not long.
Hi Mark,
The code was attached to the original post. If you can't dig it out of
the archive, I'll send it personally. Let me know.
> My other question is: why do you want to click a polygon? Wouldn't drawing a
> rectangular box be less stress on your carpal tunnel?
My use case requires selecting from a set of points that are
distributed in a way that is unsuitable for selection with a
rectangle.
(cc'ing the mpl-dev list)
-Eric B
From: Eric F. <ef...@ha...> - 2008年07月30日 02:53:41
Eric Bruning wrote:
> I wanted something more precise (and easier on the carpal tunnel) than
> the included Lasso widget. Inspired by the existing Lasso, I forked
> out an alternate approach that creates a polygon with mouse clicks and
> returns a list of vertices to a callback function.
> 
> See the attached for a demo. It's been tested with WxAgg running off
> recent svn. I'm using idle_event, which isn't mentioned in the docs
> for the released version.
> 
> If there's interest, I'll put together a patch to add this to widgets.py.
Yes, there is interest--we should have this functionality if it can work 
on all interactive backends.
I gave it a quick try with gtk backend. The polygon is drawn based on 
clicks, but nothing gets printed. Is this expected?
Eric
> 
> Thanks,
> Eric B
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> 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-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
From: Eric B. <eri...@gm...> - 2008年07月30日 00:58:28
Attachments: poly_lasso.py
I wanted something more precise (and easier on the carpal tunnel) than
the included Lasso widget. Inspired by the existing Lasso, I forked
out an alternate approach that creates a polygon with mouse clicks and
returns a list of vertices to a callback function.
See the attached for a demo. It's been tested with WxAgg running off
recent svn. I'm using idle_event, which isn't mentioned in the docs
for the released version.
If there's interest, I'll put together a patch to add this to widgets.py.
Thanks,
Eric B

Showing 7 results of 7

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