You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
(12) |
Sep
(12) |
Oct
(56) |
Nov
(65) |
Dec
(37) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(59) |
Feb
(78) |
Mar
(153) |
Apr
(205) |
May
(184) |
Jun
(123) |
Jul
(171) |
Aug
(156) |
Sep
(190) |
Oct
(120) |
Nov
(154) |
Dec
(223) |
| 2005 |
Jan
(184) |
Feb
(267) |
Mar
(214) |
Apr
(286) |
May
(320) |
Jun
(299) |
Jul
(348) |
Aug
(283) |
Sep
(355) |
Oct
(293) |
Nov
(232) |
Dec
(203) |
| 2006 |
Jan
(352) |
Feb
(358) |
Mar
(403) |
Apr
(313) |
May
(165) |
Jun
(281) |
Jul
(316) |
Aug
(228) |
Sep
(279) |
Oct
(243) |
Nov
(315) |
Dec
(345) |
| 2007 |
Jan
(260) |
Feb
(323) |
Mar
(340) |
Apr
(319) |
May
(290) |
Jun
(296) |
Jul
(221) |
Aug
(292) |
Sep
(242) |
Oct
(248) |
Nov
(242) |
Dec
(332) |
| 2008 |
Jan
(312) |
Feb
(359) |
Mar
(454) |
Apr
(287) |
May
(340) |
Jun
(450) |
Jul
(403) |
Aug
(324) |
Sep
(349) |
Oct
(385) |
Nov
(363) |
Dec
(437) |
| 2009 |
Jan
(500) |
Feb
(301) |
Mar
(409) |
Apr
(486) |
May
(545) |
Jun
(391) |
Jul
(518) |
Aug
(497) |
Sep
(492) |
Oct
(429) |
Nov
(357) |
Dec
(310) |
| 2010 |
Jan
(371) |
Feb
(657) |
Mar
(519) |
Apr
(432) |
May
(312) |
Jun
(416) |
Jul
(477) |
Aug
(386) |
Sep
(419) |
Oct
(435) |
Nov
(320) |
Dec
(202) |
| 2011 |
Jan
(321) |
Feb
(413) |
Mar
(299) |
Apr
(215) |
May
(284) |
Jun
(203) |
Jul
(207) |
Aug
(314) |
Sep
(321) |
Oct
(259) |
Nov
(347) |
Dec
(209) |
| 2012 |
Jan
(322) |
Feb
(414) |
Mar
(377) |
Apr
(179) |
May
(173) |
Jun
(234) |
Jul
(295) |
Aug
(239) |
Sep
(276) |
Oct
(355) |
Nov
(144) |
Dec
(108) |
| 2013 |
Jan
(170) |
Feb
(89) |
Mar
(204) |
Apr
(133) |
May
(142) |
Jun
(89) |
Jul
(160) |
Aug
(180) |
Sep
(69) |
Oct
(136) |
Nov
(83) |
Dec
(32) |
| 2014 |
Jan
(71) |
Feb
(90) |
Mar
(161) |
Apr
(117) |
May
(78) |
Jun
(94) |
Jul
(60) |
Aug
(83) |
Sep
(102) |
Oct
(132) |
Nov
(154) |
Dec
(96) |
| 2015 |
Jan
(45) |
Feb
(138) |
Mar
(176) |
Apr
(132) |
May
(119) |
Jun
(124) |
Jul
(77) |
Aug
(31) |
Sep
(34) |
Oct
(22) |
Nov
(23) |
Dec
(9) |
| 2016 |
Jan
(26) |
Feb
(17) |
Mar
(10) |
Apr
(8) |
May
(4) |
Jun
(8) |
Jul
(6) |
Aug
(5) |
Sep
(9) |
Oct
(4) |
Nov
|
Dec
|
| 2017 |
Jan
(5) |
Feb
(7) |
Mar
(1) |
Apr
(5) |
May
|
Jun
(3) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
|
| 2018 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| 2025 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
1
(9) |
2
(1) |
3
(4) |
4
(4) |
|
5
(9) |
6
(5) |
7
(12) |
8
(5) |
9
(27) |
10
(10) |
11
(4) |
|
12
|
13
(6) |
14
(12) |
15
(16) |
16
(13) |
17
(9) |
18
(1) |
|
19
(2) |
20
(4) |
21
(9) |
22
(5) |
23
(2) |
24
(6) |
25
|
|
26
(1) |
27
(9) |
28
(7) |
29
(2) |
30
(9) |
|
|
|
From: Russell E. O. <ro...@uw...> - 2011-06-30 21:19:22
|
In article <row...@ne...>,
"Russell E. Owen" <ro...@uw...> wrote:
> I am trying to make a legend for a stacked histogram using matplotlib
> 1.0.1 and it's not working.
>
> Here's what I've tried so far:
>
> count, bins, ignored = pyplot.hist(
> (matchedStarPsfMags, unmatchedRefStarPsfMags,
> unmatchedSourcePsfMags),
> bins=30, histtype='barstacked', normed=True)
> pyplot.legend(("matched stars", "unmatched stars", \
> "false detections"), loc='upper left')
>
> This produces a nice stacked histogram with red, green and blue.
> Unfortunately the legend is blue for all three entries, so the legend is
> useless!
>
> I figured I could label the data instead. The documentation for hist
> says:
> label:
> String, or sequence of strings to match multiple datasets. Bar charts
> yield multiple patches per dataset, but only the first gets the label,
> so that the legend command will work as expected:
>
> That last sentence sounded really ominous in this context, but I figured
> I would try it anyway. Unfortunately this code fails:
>
> count, bins, ignored = pyplot.hist(
> (matchedStarPsfMags, unmatchedRefStarPsfMags,
> unmatchedSourcePsfMags),
> label = ("matched stars", "unmatched stars",
> "false detections"),
> bins=30, histtype='barstacked', normed=True)
> pyplot.legend(loc='upper left')
>
> with this error:
>
> Traceback (most recent call last):
> File "bin/measDepth.py", line 291, in <module>
> pyplot.legend(loc='upper left')
> File
> "/lsst/DC3/stacks/gcc443/15oct2010/Linux64/external/matplotlib/0.98.5.2+1
> /lib/python/matplotlib/pyplot.py", line 2441, in legend
> ret = gca().legend(*args, **kwargs)
> File
> "/lsst/DC3/stacks/gcc443/15oct2010/Linux64/external/matplotlib/0.98.5.2+1
> /lib/python/matplotlib/axes.py", line 3777, in legend
> label != '' and not label.startswith('_')):
> AttributeError: 'tuple' object has no attribute 'startswith'
>
> In other words the documentation appears to be incorrect that a sequence
> of strings is acceptable.
>
> Any suggestions?
Oops. I was able to answer my own question.
It turns out I was using an ancient version of matplotlib (0.98.5.2) (I
was using a remote server and forgot to check).
The second version does work with matplotlib 1.0.1 and produces a nice
legend with the correct color for each entry. Yaay!
The first version produces a useless legend with all colors the same on
both modern matplotlib and the ancient matplotlib. So use the second
method of specifying label=(...) in the hist command.
-- Russell
|
|
From: Russell E. O. <ro...@uw...> - 2011-06-30 20:54:54
|
I am trying to make a legend for a stacked histogram using matplotlib
1.0.1 and it's not working.
Here's what I've tried so far:
count, bins, ignored = pyplot.hist(
(matchedStarPsfMags, unmatchedRefStarPsfMags,
unmatchedSourcePsfMags),
bins=30, histtype='barstacked', normed=True)
pyplot.legend(("matched stars", "unmatched stars", \
"false detections"), loc='upper left')
This produces a nice stacked histogram with red, green and blue.
Unfortunately the legend is blue for all three entries, so the legend is
useless!
I figured I could label the data instead. The documentation for hist
says:
label:
String, or sequence of strings to match multiple datasets. Bar charts
yield multiple patches per dataset, but only the first gets the label,
so that the legend command will work as expected:
That last sentence sounded really ominous in this context, but I figured
I would try it anyway. Unfortunately this code fails:
count, bins, ignored = pyplot.hist(
(matchedStarPsfMags, unmatchedRefStarPsfMags,
unmatchedSourcePsfMags),
label = ("matched stars", "unmatched stars",
"false detections"),
bins=30, histtype='barstacked', normed=True)
pyplot.legend(loc='upper left')
with this error:
Traceback (most recent call last):
File "bin/measDepth.py", line 291, in <module>
pyplot.legend(loc='upper left')
File
"/lsst/DC3/stacks/gcc443/15oct2010/Linux64/external/matplotlib/0.98.5.2+1
/lib/python/matplotlib/pyplot.py", line 2441, in legend
ret = gca().legend(*args, **kwargs)
File
"/lsst/DC3/stacks/gcc443/15oct2010/Linux64/external/matplotlib/0.98.5.2+1
/lib/python/matplotlib/axes.py", line 3777, in legend
label != '' and not label.startswith('_')):
AttributeError: 'tuple' object has no attribute 'startswith'
In other words the documentation appears to be incorrect that a sequence
of strings is acceptable.
Any suggestions?
-- Russell
|
|
From: Tiago F. <dev...@ti...> - 2011-06-30 17:34:04
|
Thanks, please check the git-hub issue. On Thu, Jun 30, 2011 at 8:37 AM, Darren Dale <dsd...@gm...> wrote: > > Hi, > > I had problems to build the version 1.0.1-r1 in gentoo with > linux-3.0.0-rcX. > > As chromium, the matplotlib need fix the use of 'linux2' label. See > chromium > > thread: > > http://code.google.com/p/chromium/issues/detail?id=85845 > > Is very simple fix. If you want, i can send one patch. > > Thank you. I've filed an issue at github and identified it as needing > to be fixed in the next release. If you could submit a patch, that > would be helpful. > > Darren > -- Tiago Rezende Campos Falcão http://www.tiagofalcao.com -- ProFUSION | embedded systems Computer Systems Laboratory - IC - Unicamp Grupo Pró Software Livre - Unicamp Laboratory of Information Systems - IC - Unicamp |
|
From: Michael D. <md...@st...> - 2011-06-30 17:19:10
|
On 06/30/2011 01:10 PM, Michael Droettboom wrote: > I'm surprised this bug (which really lies in Tkinter) isn't more widely > known -- searching the Python bug tracker revealed nothing. It would be > great to follow-up there (with a standalone Tkinter-crashing example) if > you're so inclined. I did find this bug, which seems to be related. http://bugs.python.org/issue10647 Mike -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA |
|
From: Michael D. <md...@st...> - 2011-06-30 17:19:00
|
On 06/30/2011 01:10 PM, Michael Droettboom wrote: > I'm surprised this bug (which really lies in Tkinter) isn't more widely > known -- searching the Python bug tracker revealed nothing. It would be > great to follow-up there (with a standalone Tkinter-crashing example) if > you're so inclined. I did find this bug, which seems to be related. Mike -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA |
|
From: Michael D. <md...@st...> - 2011-06-30 17:07:21
|
Thanks for the report. Indeed this is a problem. I've filed a pull request with a fix here: https://github.com/matplotlib/matplotlib/pull/387 There were a few other places where we weren't absolutely ensuring the passing of ints to Tkinter that I also fixed. I'm surprised this bug (which really lies in Tkinter) isn't more widely known -- searching the Python bug tracker revealed nothing. It would be great to follow-up there (with a standalone Tkinter-crashing example) if you're so inclined. Cheers, Mike On 06/30/2011 11:48 AM, han...@ar... wrote: > Hi, > > sorry if this has already been addressed. I did a search on the archives, but even though that turned up lots of hits, none of them seemed to be related to the issue. > > The following very simple example will reliably crash in Python 2.7.[0-2] with matplotlib 1.0.1 under a 64 bit German Windows (and probably also on other machines where you can set an equivalent locale): > > --- > > import matplotlib > > from pylab import arange,sin,pi > t = arange(0.0, 2.0, 0.01) > s = sin(2*pi*t) > > import locale > # the locale setting in the next line makes pyplot.plot crash > # have to use "deu_deu" instead of "de_DE" on German Windows > locale.setlocale(locale.LC_ALL, 'deu_deu') > print "locale =", locale.getlocale(locale.LC_NUMERIC) > > print "will plot ..." > matplotlib.pyplot.plot(t, s, linewidth=1.0) > # doesn't get this far with German locale > print "will show ..." > matplotlib.pyplot.show() > > --- > > The program crashes in pyplot.plot(). The stacktrace is: > > --- > > Traceback (most recent call last): > File "C:\[...]\badScreenSizeMPL.py", line 14, in<module> > matplotlib.pyplot.plot(t, s, linewidth=1.0) > File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 2279, in plot > ax = gca() > File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 593, in gca > ax = gcf().gca(**kwargs) > File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 292, in gcf > return figure() > File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 270, in figure > **kwargs) > File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 82, in new_figure_manager > figManager = FigureManagerTkAgg(canvas, num, window) > File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 400, in __init__ > self.toolbar = NavigationToolbar2TkAgg( canvas, self.window ) > File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 667, in __init__ > NavigationToolbar2.__init__(self, canvas) > File "C:\Python27\lib\site-packages\matplotlib\backend_bases.py", line 2310, in __init__ > self._init_toolbar() > File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 711, in _init_toolbar > borderwidth=2) > File "C:\Python27\lib\lib-tk\Tkinter.py", line 2466, in __init__ > Widget.__init__(self, master, 'frame', cnf, {}, extra) > File "C:\Python27\lib\lib-tk\Tkinter.py", line 1977, in __init__ > (widgetName, self._w) + extra + self._options(cnf)) > _tkinter.TclError: bad screen distance "640.0" > Fatal Python error: PyEval_RestoreThread: NULL tstate > > --- > > The reason appears to be that at some point Tkinter tries to parse the string "640.0" as a number, which does not work in a locale where the decimal marker is, e.g., the comma (as in German). If you comment out the locale setting (or set it to "C"), the example works. > > The float value of 640.0 seems to emerge from the following piece of code in "backend_tkagg.py". > > --- > > class NavigationToolbar2TkAgg(NavigationToolbar2, Tk.Frame): > > [...] > > def _init_toolbar(self): > xmin, xmax = self.canvas.figure.bbox.intervalx > height, width = 50, xmax-xmin > Tk.Frame.__init__(self, master=self.window, > width=width, height=height, > borderwidth=2) > > --- > > Through the initialization by difference, "width" is a 'numpy.float64'; changing the assignment of "height, width" to > > height, width = 50, int(xmax-xmin) > > makes the example program run through without problems. > > One the one hand, I guess this should be fixed in the depths of Tkinter (where apparently a number type gets stringified just to be parsed again as a number). One the other hand, it would be very simple fix in the TkAgg backend, and it seems sensible to make the width an int. (Perhaps even the intervals in intervalx should already be ints?) > > I would like to point out that, even though this might sound like a contrived problem, it can easily occur where machines are set up with different languages; we had a tool run on an English Windows, but we got the stack trace from above when we moved that tool to a German Windows which we believed to be set up in just the same way as the original Windows. It took us a day to figure out what the reason behind the cryptic Tkinter error was. > > Kind regards, > H. > > > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users -- Michael Droettboom Science Software Branch Space Telescope Science Institute Baltimore, Maryland, USA |
|
From: <han...@ar...> - 2011-06-30 15:48:41
|
Hi,
sorry if this has already been addressed. I did a search on the archives, but even though that turned up lots of hits, none of them seemed to be related to the issue.
The following very simple example will reliably crash in Python 2.7.[0-2] with matplotlib 1.0.1 under a 64 bit German Windows (and probably also on other machines where you can set an equivalent locale):
---
import matplotlib
from pylab import arange,sin,pi
t = arange(0.0, 2.0, 0.01)
s = sin(2*pi*t)
import locale
# the locale setting in the next line makes pyplot.plot crash
# have to use "deu_deu" instead of "de_DE" on German Windows
locale.setlocale(locale.LC_ALL, 'deu_deu')
print "locale =", locale.getlocale(locale.LC_NUMERIC)
print "will plot ..."
matplotlib.pyplot.plot(t, s, linewidth=1.0)
# doesn't get this far with German locale
print "will show ..."
matplotlib.pyplot.show()
---
The program crashes in pyplot.plot(). The stacktrace is:
---
Traceback (most recent call last):
File "C:\[...]\badScreenSizeMPL.py", line 14, in <module>
matplotlib.pyplot.plot(t, s, linewidth=1.0)
File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 2279, in plot
ax = gca()
File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 593, in gca
ax = gcf().gca(**kwargs)
File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 292, in gcf
return figure()
File "C:\Python27\lib\site-packages\matplotlib\pyplot.py", line 270, in figure
**kwargs)
File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 82, in new_figure_manager
figManager = FigureManagerTkAgg(canvas, num, window)
File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 400, in __init__
self.toolbar = NavigationToolbar2TkAgg( canvas, self.window )
File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 667, in __init__
NavigationToolbar2.__init__(self, canvas)
File "C:\Python27\lib\site-packages\matplotlib\backend_bases.py", line 2310, in __init__
self._init_toolbar()
File "C:\Python27\lib\site-packages\matplotlib\backends\backend_tkagg.py", line 711, in _init_toolbar
borderwidth=2)
File "C:\Python27\lib\lib-tk\Tkinter.py", line 2466, in __init__
Widget.__init__(self, master, 'frame', cnf, {}, extra)
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1977, in __init__
(widgetName, self._w) + extra + self._options(cnf))
_tkinter.TclError: bad screen distance "640.0"
Fatal Python error: PyEval_RestoreThread: NULL tstate
---
The reason appears to be that at some point Tkinter tries to parse the string "640.0" as a number, which does not work in a locale where the decimal marker is, e.g., the comma (as in German). If you comment out the locale setting (or set it to "C"), the example works.
The float value of 640.0 seems to emerge from the following piece of code in "backend_tkagg.py".
---
class NavigationToolbar2TkAgg(NavigationToolbar2, Tk.Frame):
[...]
def _init_toolbar(self):
xmin, xmax = self.canvas.figure.bbox.intervalx
height, width = 50, xmax-xmin
Tk.Frame.__init__(self, master=self.window,
width=width, height=height,
borderwidth=2)
---
Through the initialization by difference, "width" is a 'numpy.float64'; changing the assignment of "height, width" to
height, width = 50, int(xmax-xmin)
makes the example program run through without problems.
One the one hand, I guess this should be fixed in the depths of Tkinter (where apparently a number type gets stringified just to be parsed again as a number). One the other hand, it would be very simple fix in the TkAgg backend, and it seems sensible to make the width an int. (Perhaps even the intervals in intervalx should already be ints?)
I would like to point out that, even though this might sound like a contrived problem, it can easily occur where machines are set up with different languages; we had a tool run on an English Windows, but we got the stack trace from above when we moved that tool to a German Windows which we believed to be set up in just the same way as the original Windows. It took us a day to figure out what the reason behind the cryptic Tkinter error was.
Kind regards,
H.
|
|
From: Darren D. <dsd...@gm...> - 2011-06-30 11:37:43
|
> Hi, > I had problems to build the version 1.0.1-r1 in gentoo with linux-3.0.0-rcX. > As chromium, the matplotlib need fix the use of 'linux2' label. See chromium > thread: > http://code.google.com/p/chromium/issues/detail?id=85845 > Is very simple fix. If you want, i can send one patch. Thank you. I've filed an issue at github and identified it as needing to be fixed in the next release. If you could submit a patch, that would be helpful. Darren |
|
From: Chris H. <chi...@om...> - 2011-06-30 09:41:28
|
Hi,
I want to visualise a live data-stream by a number of plots (3d,
line drawings, scatter plots etc). I've been using the simpler
animation techniques (using gobject.idle_add and wx.EVT_IDLE to
redraw updates).
Some plots have static backgrounds that may benefit from the blit
techniques and I have been trying to get this approach to work in
GTKAgg and WXAgg. GTKAgg on linux seems to be coming along fine.
WXAgg on linux or macos, I'm not getting very far with.
So can anyone help with a few questions?
- can the native macos backend be used for animation? What's the
equivalent of gobject.idle_add or gobject.timeout_add? Anything
special needed for the blitting approach to work?
- What needs to be done to get WXAgg blitting? I have code like this:
...
matplotlib.use('WXAgg')
...
def update():
...
# restore, blit etc
wx.WakeUpIdle()
...
wx.EVT_IDLE(wx.GetApp(), update)
...
On Linux this draws the first screen and pauses. If I move the mouse
around I see the updates. As soon as I stop, so do the updates. What
am I missing? (BTW I get the same behaviour from animation_blit_wx.py
from the examples page). This is 1.0.1 on Linux, although I'm still
using 0.99.1 as well.
thanks for any help,
cheers, chris
--
Chris Higgins, Omnisense Ltd, 3rd Floor, St. Andrews House,
59 St Andrews Street, Cambridge, CB2 3BZ
Office: +44 (0) 1223 651394
Mobile: +44 (0) 780 490 8562
Skype: chiggins99
http://www.omnisense.co.uk
Omnisense Ltd is a company registered in England and Wales. Registered number: 6779286.
Registered office: St. Andrews House, 59 St Andrews Street, Cambridge, CB2 3BZ
|