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


Showing 10 results of 10

From: James K. <ji...@ya...> - 2011年03月03日 18:46:10
Looks like that fixed it. Thanks!
Jim
________________________________
From: Benjamin Root <ben...@ou...>
To: Jae-Joon Lee <lee...@gm...>
Cc: James Kitchen <ji...@ya...>; mat...@li...
Sent: Thu, March 3, 2011 11:40:32 AM
Subject: Re: [matplotlib-devel] Bug in Draggable Legend
On Thu, Mar 3, 2011 at 10:30 AM, Jae-Joon Lee <lee...@gm...> wrote:
I just committed a change that I believe that fixes this problem.
>
>https://github.com/matplotlib/matplotlib/commit/be420a34031c9c50813bc5be5f01a3cfb49639a1
>
>
>Regards,
>
>-JJ
>
>
>
Confirmed that it fixes the problem for me on the GTKAgg backend as well.
Ben Root
 
From: Benjamin R. <ben...@ou...> - 2011年03月03日 16:41:07
On Thu, Mar 3, 2011 at 10:30 AM, Jae-Joon Lee <lee...@gm...> wrote:
> I just committed a change that I believe that fixes this problem.
>
>
> https://github.com/matplotlib/matplotlib/commit/be420a34031c9c50813bc5be5f01a3cfb49639a1
>
> Regards,
>
> -JJ
>
>
Confirmed that it fixes the problem for me on the GTKAgg backend as well.
Ben Root
From: Jae-Joon L. <lee...@gm...> - 2011年03月03日 16:30:35
I just committed a change that I believe that fixes this problem.
https://github.com/matplotlib/matplotlib/commit/be420a34031c9c50813bc5be5f01a3cfb49639a1
Regards,
-JJ
On Fri, Mar 4, 2011 at 12:58 AM, James Kitchen <ji...@ya...> wrote:
> Hi all,
>
> I found a small bug in the Draggable Legend feature when you single-click on a
> legend, but don't drag it. It raises a TypeError.
>
> Here's code to reproduce. Try dragging the legend, then single-click the
> legend.
>
> #!/usr/bin/env python
> import matplotlib as mpl
> import pylab
>
> fig = pylab.figure()
> ax = fig.add_subplot(111)
> ax.plot(range(10), range(10), c='r', marker='^', picker=5, label='Ramp')
> legn = ax.legend()
> legn.draggable()
> pylab.show()
>
>
> Here's the stacktrace when I single-click:
>
> Exception in Tkinter callback
> Traceback (most recent call last):
> File "C:\Python26\lib\lib-tk\Tkinter.py", line 1410, in __call__
>  return self.func(*args)
> File "C:\Python26\lib\site-packages\matplotlib\backends\backend_tkagg.py",
> line 312, in button_release_event
>  FigureCanvasBase.button_release_event(self, x, y, num, guiEvent=event)
> File "C:\Python26\lib\site-packages\matplotlib\backend_bases.py", line 1561,
> in button_release_event
>  self.callbacks.process(s, event)
> File "C:\Python26\lib\site-packages\matplotlib\cbook.py", line 262, in process
>  proxy(*args, **kwargs)
> File "C:\Python26\lib\site-packages\matplotlib\cbook.py", line 188, in
> __call__
>  return mtd(*args, **kwargs)
> File "C:\Python26\lib\site-packages\matplotlib\offsetbox.py", line 1466, in
> on_release
>  self.finalize_offset()
> File "C:\Python26\lib\site-packages\matplotlib\legend.py", line 51, in
> finalize_offset
>  loc_in_canvas = self.get_loc_in_canvas()
> File "C:\Python26\lib\site-packages\matplotlib\offsetbox.py", line 1512, in
> get_loc_in_canvas
>  ox, oy = offsetbox._offset
> TypeError: 'instancemethod' object is not iterable
>
> Jim
>
>
>
>
>
> ------------------------------------------------------------------------------
> Free Software Download: Index, Search & Analyze Logs and other IT data in
> Real-Time with Splunk. Collect, index and harness all the fast moving IT data
> generated by your applications, servers and devices whether physical, virtual
> or in the cloud. Deliver compliance at lower cost and gain new business
> insights. http://p.sf.net/sfu/splunk-dev2dev
> _______________________________________________
> Matplotlib-devel mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
From: James K. <ji...@ya...> - 2011年03月03日 15:58:36
Hi all,
I found a small bug in the Draggable Legend feature when you single-click on a 
legend, but don't drag it. It raises a TypeError.
Here's code to reproduce. Try dragging the legend, then single-click the 
legend.
#!/usr/bin/env python
import matplotlib as mpl
import pylab
fig = pylab.figure()
ax = fig.add_subplot(111)
ax.plot(range(10), range(10), c='r', marker='^', picker=5, label='Ramp')
legn = ax.legend()
legn.draggable()
pylab.show()
Here's the stacktrace when I single-click:
Exception in Tkinter callback
Traceback (most recent call last):
 File "C:\Python26\lib\lib-tk\Tkinter.py", line 1410, in __call__
 return self.func(*args)
 File "C:\Python26\lib\site-packages\matplotlib\backends\backend_tkagg.py", 
line 312, in button_release_event
 FigureCanvasBase.button_release_event(self, x, y, num, guiEvent=event)
 File "C:\Python26\lib\site-packages\matplotlib\backend_bases.py", line 1561, 
in button_release_event
 self.callbacks.process(s, event)
 File "C:\Python26\lib\site-packages\matplotlib\cbook.py", line 262, in process
 proxy(*args, **kwargs)
 File "C:\Python26\lib\site-packages\matplotlib\cbook.py", line 188, in 
__call__
 return mtd(*args, **kwargs)
 File "C:\Python26\lib\site-packages\matplotlib\offsetbox.py", line 1466, in 
on_release
 self.finalize_offset()
 File "C:\Python26\lib\site-packages\matplotlib\legend.py", line 51, in 
finalize_offset
 loc_in_canvas = self.get_loc_in_canvas()
 File "C:\Python26\lib\site-packages\matplotlib\offsetbox.py", line 1512, in 
get_loc_in_canvas
 ox, oy = offsetbox._offset
TypeError: 'instancemethod' object is not iterable
Jim
 
From: Benjamin R. <ben...@ou...> - 2011年03月03日 15:23:00
On Thu, Mar 3, 2011 at 3:15 AM, Martin Teichmann <lkb...@gm...>wrote:
> Hi Benjamin, Hi List,
>
> sorry for the backwards patch, here the forward one:
>
> ------------------------------------------------------------------------
> --- backend_qt4_orig.py 2011年03月02日 16:16:38.257797767 +0100
> +++ backend_qt4.py 2011年03月02日 16:17:19.526831397 +0100
> @@ -395,8 +395,9 @@
> filters.append(filter)
> filters = ';;'.join(filters)
>
> - fname = QtGui.QFileDialog.getSaveFileName(
> - self, "Choose a filename to save to", start, filters,
> selectedFilter)
> + fname, _ = QtGui.QFileDialog.getSaveFileNameAndFilter(
> + self, "Choose a filename to save to", start, filters,
> + selectedFilter)
> if fname:
> try:
> self.canvas.print_figure( unicode(fname) )
>
> ----------------------------------------------------------------------------
>
> It is done against a rather old version of matplotlib (the 0.99.3, the
> newest in kubuntu...) but the code hasn't changed since then,
> acording to github, so only the line numbers are wrong.
>
> The second patch I sent is now obsolete, as you hinted to the
> patch on github. I had followed the link on the matplotlib
> web site (http://matplotlib.sourceforge.net/) which links still to
> some subversion repository once you click onto "source code"
> Could please someone update that link to github? Or is there
> a new matplotlib website as well (google didn't find one).
>
> Greetings
>
> Martin
>
> --
> Max-Born-Institut
> Max-Born-Straße 2a
> 12489 Berlin
> +49 30 6392 1234
>
Martin,
Just for completeness, I wanted to include a link to some sort of reference
indicating a need to change the function. I can not find any documentation
that says that we need to change from getSaveFileName() to
getSaveFileNameAndFilter(). Can you please provide a source explaining the
need for this change?
Thanks,
Ben Root
From: Darren D. <dsd...@gm...> - 2011年03月03日 15:10:35
On Thu, Mar 3, 2011 at 9:36 AM, Benjamin Root <ben...@ou...> wrote:
> As for the sourceforge/github confusion, we are currently in a transition
> phase. Our repository is now hosted on github, but the official website and
> trackers are still sourceforge. Sorry for any confusion there. The
> (un)official new website will be http://matplotlib.github.com.
With particular emphasis on UNofficial. I put that site up to make the
git/github developer docs available right away, and to investigate
whether we might want to host the homepage at github. There has been
no discussion of switching, let alone a decision to do so.
From: Benjamin R. <ben...@ou...> - 2011年03月03日 14:36:44
On Thu, Mar 3, 2011 at 3:15 AM, Martin Teichmann <lkb...@gm...>wrote:
> Hi Benjamin, Hi List,
>
> sorry for the backwards patch, here the forward one:
>
> ------------------------------------------------------------------------
> --- backend_qt4_orig.py 2011年03月02日 16:16:38.257797767 +0100
> +++ backend_qt4.py 2011年03月02日 16:17:19.526831397 +0100
> @@ -395,8 +395,9 @@
> filters.append(filter)
> filters = ';;'.join(filters)
>
> - fname = QtGui.QFileDialog.getSaveFileName(
> - self, "Choose a filename to save to", start, filters,
> selectedFilter)
> + fname, _ = QtGui.QFileDialog.getSaveFileNameAndFilter(
> + self, "Choose a filename to save to", start, filters,
> + selectedFilter)
> if fname:
> try:
> self.canvas.print_figure( unicode(fname) )
>
> ----------------------------------------------------------------------------
>
> It is done against a rather old version of matplotlib (the 0.99.3, the
> newest in kubuntu...) but the code hasn't changed since then,
> acording to github, so only the line numbers are wrong.
>
> The second patch I sent is now obsolete, as you hinted to the
> patch on github. I had followed the link on the matplotlib
> web site (http://matplotlib.sourceforge.net/) which links still to
> some subversion repository once you click onto "source code"
> Could please someone update that link to github? Or is there
> a new matplotlib website as well (google didn't find one).
>
> Greetings
>
> Martin
>
> --
> Max-Born-Institut
> Max-Born-Straße 2a
> 12489 Berlin
> +49 30 6392 1234
>
Martin,
Thank you for double-checking your patches. I will see about getting it
added into mpl today.
As for the sourceforge/github confusion, we are currently in a transition
phase. Our repository is now hosted on github, but the official website and
trackers are still sourceforge. Sorry for any confusion there. The
(un)official new website will be http://matplotlib.github.com.
Thank you for helping to make matplotlib better!
Ben Root
From: Maximilian T. <fa...@tr...> - 2011年03月03日 10:38:44
Hey,
i just fixed this bug:
http://sourceforge.net/tracker/?func=detail&aid=3165422&group_id=80706&atid=560720
It's a one-liner. I think it's overkill to start a pull request for it.
--- a/lib/matplotlib/axes.py
+++ b/lib/matplotlib/axes.py
@@ -247,7 +247,7 @@ class _process_plot_var_args:
 def _makeline(self, x, y, kw, kwargs):
 kw = kw.copy() # Don't modify the original kw.
- if not 'color' in kw:
+ if not 'color' in kw and not 'color' in kwargs.keys():
 kw['color'] = self.color_cycle.next()
 # (can't use setdefault because it always evaluates
 # its second argument)
it's also attached.
Or do you want to use a pull request?
kind regards
maximilian
From: Martin T. <lkb...@gm...> - 2011年03月03日 09:15:56
Hi Benjamin, Hi List,
sorry for the backwards patch, here the forward one:
------------------------------------------------------------------------
--- backend_qt4_orig.py 2011年03月02日 16:16:38.257797767 +0100
+++ backend_qt4.py 2011年03月02日 16:17:19.526831397 +0100
@@ -395,8 +395,9 @@
 filters.append(filter)
 filters = ';;'.join(filters)
- fname = QtGui.QFileDialog.getSaveFileName(
- self, "Choose a filename to save to", start, filters,
selectedFilter)
+ fname, _ = QtGui.QFileDialog.getSaveFileNameAndFilter(
+ self, "Choose a filename to save to", start, filters,
+ selectedFilter)
 if fname:
 try:
 self.canvas.print_figure( unicode(fname) )
----------------------------------------------------------------------------
It is done against a rather old version of matplotlib (the 0.99.3, the
newest in kubuntu...) but the code hasn't changed since then,
acording to github, so only the line numbers are wrong.
The second patch I sent is now obsolete, as you hinted to the
patch on github. I had followed the link on the matplotlib
web site (http://matplotlib.sourceforge.net/) which links still to
some subversion repository once you click onto "source code"
Could please someone update that link to github? Or is there
a new matplotlib website as well (google didn't find one).
Greetings
Martin
-- 
Max-Born-Institut
Max-Born-Straße 2a
12489 Berlin
+49 30 6392 1234
From: Fernando P. <fpe...@gm...> - 2011年03月03日 03:16:00
On Wed, Mar 2, 2011 at 3:00 PM, Ryan May <rm...@gm...> wrote:
> I trust you're going to check in that completely awesome example.
BTW, that completely awesome example was just demoed in front of a
standing-room only audience at the SIAM CSE 11 meeting :) The
matplotlib talk (delivered by yours truly b/c John couldn't make it)
was very well received, the interest in Python here is remarkable.
Cheers,
f
1 message has been excluded from this view by a project administrator.

Showing 10 results of 10

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