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
(36) |
2
(10) |
3
(8) |
4
|
5
(4) |
6
(15) |
7
(17) |
8
(3) |
9
(8) |
10
(5) |
11
(2) |
12
(5) |
13
(5) |
14
(15) |
15
(3) |
16
(10) |
17
(6) |
18
(2) |
19
(1) |
20
(11) |
21
(33) |
22
(13) |
23
(14) |
24
(15) |
25
(4) |
26
(5) |
27
(9) |
28
(12) |
29
(7) |
30
(8) |
31
(6) |
|
Darren Dale wrote: > On Saturday 11 August 2007 8:15:41 am Xavier Gnata wrote: > >> Hi, >> >> Using pylab svn, the qt backend is broken. >> >> import pylab fails : >> >> /usr/lib/python2.4/site-packages/matplotlib/backends/backend_qtagg.py >> 11 >> 12 from backend_agg import FigureCanvasAgg >> ---> 13 from backend_qt import qt, FigureManagerQT, FigureCanvasQT,\ >> 14 show, draw_if_interactive, backend_version, \ >> 15 NavigationToolbar2QT >> >> /usr/lib/python2.4/site-packages/matplotlib/backends/backend_qt.py >> 15 from matplotlib.widgets import SubplotTool >> 16 >> ---> 17 import qt >> 18 >> 19 backend_version = "0.9.1" >> >> ImportError: No module named qt >> > > That means you dont have PyQt-3 installed on your machine. > > >> If I replace import qt by import PyQt4 >> > > dont! > > >> , I get another error : >> > > If you want to use PyQt4, you should set your backend to qt4agg instead of > qtagg. > OK my matplotlibrc was out of date. Now it works but I have found another but playing with the sliders of the backend: As the log is quite long, here are only the most relevant parts : imshow(a) Out[7]: <matplotlib.image.AxesImage instance at 0xb262a8cc> (play with the sliders of the qt4agg backend) In [8]: --------------------------------------------------------------------------- exceptions.ValueError Python 2.4.4: /usr/bin/python Mon Aug 13 00:58:56 2007 A problem occured executing Python code. Here is the sequence of function calls leading up to the error, with the most recent (innermost) call last. /usr/lib/python2.4/site-packages/matplotlib/backends/backend_qt4.py in funcleft(self=<matplotlib.backends.backend_qt4.SubplotToolQt object>, val=900) /usr/lib/python2.4/site-packages/matplotlib/figure.py in update(self=<matplotlib.figure.SubplotParams instance>, left=0.90000000000000002, bottom=None, right=None, top=None, wspace=None, hspace=None) 71 self._update_this('top', top) 72 self._update_this('wspace', wspace) 73 self._update_this('hspace', hspace) 74 75 def reset(): 76 self.left = thisleft 77 self.right = thisright 78 self.top = thistop 79 self.bottom = thisbottom 80 self.wspace = thiswspace 81 self.hspace = thishspace 82 83 if self.validate: 84 if self.left>=self.right: 85 reset() ---> 86 raise ValueError('left cannot be >= right') global ValueError = undefined 87 88 if self.bottom>=self.top: 89 reset() 90 raise ValueError('bottom cannot be >= top') 91 92 93 94 def _update_this(self, s, val): 95 if val is None: 96 val = getattr(self, s, None) 97 if val is None: 98 key = 'figure.subplot.' + s 99 val = rcParams[key] 100 101 setattr(self, s, val) ValueError: left cannot be >= right ********************************************************************** Oops, IPython crashed. We do our best to make it stable, but... It looks like that the ranges of the sliders are checked in a wrong way. It may be due to numerical rounding issues. Xavier ....
Also, after looking at the embedded_tk example, it seems that you end the script with a tk.mainloop() which kind of defeats my whole purpose, as I need the script to keep checking for changes on a file. What it seems that I need is some why to trigger the gui loop, but also to have an "event" be trigged every few seconds, and that event would be responsible for checking if there is new data, reading the file, and updating the plot if necessary. Is there some way to accomplish something like this? Thanks, Angel ---------- Forwarded message ---------- From: Angel Ezquerra Moreu <ang...@gm...> Date: Aug 12, 2007 11:01 PM Subject: Re: [Matplotlib-users] Cannot maximize figure while script is running To: mat...@li... > I would suggest not using the pylab interface. Try building off of one of the > embedding_in examples in > http://matplotlib.sourceforge.net/matplotlib_examples_0.90.0.zip. Thank you for the answer, Darren. However, could you explain a bit more in detail why is not a good idea to use the pylab interface? It is very simple and easy to use (I am a Matlab user as well) so it felt very natural to try to use it. Angel P.S.- Thanks for the os.path.getmtime tip.
> I would suggest not using the pylab interface. Try building off of one of the > embedding_in examples in > http://matplotlib.sourceforge.net/matplotlib_examples_0.90.0.zip. Thank you for the answer, Darren. However, could you explain a bit more in detail why is not a good idea to use the pylab interface? It is very simple and easy to use (I am a Matlab user as well) so it felt very natural to try to use it. Angel P.S.- Thanks for the os.path.getmtime tip.
On Sunday 12 August 2007 3:56:14 am Angel Ezquerra Moreu wrote: > Hi, > > I want to make a small python script that monitors a text file and plots > its contents. This script is meant to run in Windows. The file that is > being monitored has one floating point number per line and new numbers can > be appended to the end of the file at any moment by some external program. > > Therefore the script needs to keep reading the file and if new data is > found, it should update the plot (a simple plot() command will do for now). > To do so the script has an endless loop that tries to read new data and if > it can it plots it and issues a pylab.draw() command. > > I got the script working, (based on the "anim.py" example from the > Matplotlib web page: http://matplotlib.sourceforge.net/examples/anim.py). > The script updates the plot correctly when new data is added to the file. > However, the figure itself is not really functional. By that I mean that > the figure cannot maximized while the script is running. It is not possible > to change the zoom or use the toolbar either. > > The example script has the same problem (i.e. the figure cannot maximized), > so I'd like to know if there is any way around this or if I should use > something other than pylab instead. I would suggest not using the pylab interface. Try building off of one of the embedding_in examples in http://matplotlib.sourceforge.net/matplotlib_examples_0.90.0.zip. Also, rather than repeatedly reading your data file to determine when new data is available, I suggest using os.path.getmtime. Darren
Hi, I want to make a small python script that monitors a text file and plots its contents. This script is meant to run in Windows. The file that is being monitored has one floating point number per line and new numbers can be appended to the end of the file at any moment by some external program. Therefore the script needs to keep reading the file and if new data is found, it should update the plot (a simple plot() command will do for now). To do so the script has an endless loop that tries to read new data and if it can it plots it and issues a pylab.draw() command. I got the script working, (based on the "anim.py" example from the Matplotlib web page: http://matplotlib.sourceforge.net/examples/anim.py). The script updates the plot correctly when new data is added to the file. However, the figure itself is not really functional. By that I mean that the figure cannot maximized while the script is running. It is not possible to change the zoom or use the toolbar either. The example script has the same problem (i.e. the figure cannot maximized), so I'd like to know if there is any way around this or if I should use something other than pylab instead. Thanks! Angel