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
(5) |
2
(24) |
3
(2) |
|
4
|
5
(4) |
6
(1) |
7
(22) |
8
(9) |
9
(23) |
10
(6) |
|
11
|
12
(7) |
13
(17) |
14
(12) |
15
(10) |
16
(22) |
17
(11) |
|
18
(6) |
19
(11) |
20
(13) |
21
(10) |
22
(7) |
23
(7) |
24
(5) |
|
25
(3) |
26
(20) |
27
(17) |
28
(25) |
29
(16) |
30
(17) |
31
(8) |
|
From: Eric F. <ef...@ha...> - 2007-03-27 23:50:14
|
Evan, That is getting clearer, but it still seems to me that no override should be needed in this case; it should "just work", so if it doesn't, either there is a bug in mpl or a bug in the code. It would be most helpful if you would write a stripped-down simplest-possible script that illustrates the problem. Then I can either show how to fix the script, or I can use the script to help me track down the mpl bug, if that is the problem. Eric Evan Mason wrote: > Hi Eric > > I am using matplotlib-0.90.0. > > I am making 2 contourf subplots of temperature values which have similar > but not equal ranges. In subplot1 the range is 15-25; in subplot2 it is > 16 to 24. I use clim, giving it the max and min values obtained from a > comparison of subplot1 and 2; i.e., I use clim([15, 25]) on both > subplots. The two subplots display exactly as I want them to. > > Next, I want 2 colorbars to go with the two subplots. I want the range > of each colorbar to be the same, set as the clim values (15 and 25). > This happens for subplot1, but not for subplot2, which shows the range > 16-24, following its input data range and not the clim values. > > So what I want to know is if it is possible to overide the colorbar > limits, setting them to 15-25? > > I hope that's clearer now, thanks, Evan > > > > On 3/27/07, * Eric Firing* <ef...@ha... > <mailto:ef...@ha...>> wrote: > > Evan, > > It is still not quite clear to me what you want versus what you are > getting. With recent versions of mpl, the colorbar automatically uses > the same color boundaries as contourf, if that is what the colorbar is > tracking. What version of mpl are you using? > > (With the most recent mpl I see that there is a strange bug such that > setting clim clobbers the axis tick labeling for the colorbar--yet > another thing that needs to be figured out and fixed.) > > |
|
From: Evan M. <eva...@gm...> - 2007-03-27 23:39:13
|
Hi Eric I am using matplotlib-0.90.0. I am making 2 contourf subplots of temperature values which have similar but not equal ranges. In subplot1 the range is 15-25; in subplot2 it is 16 to 24. I use clim, giving it the max and min values obtained from a comparison of subplot1 and 2; i.e., I use clim([15, 25]) on both subplots. The two subplots display exactly as I want them to. Next, I want 2 colorbars to go with the two subplots. I want the range of each colorbar to be the same, set as the clim values (15 and 25). This happens for subplot1, but not for subplot2, which shows the range 16-24, following its input data range and not the clim values. So what I want to know is if it is possible to overide the colorbar limits, setting them to 15-25? I hope that's clearer now, thanks, Evan On 3/27/07, Eric Firing <ef...@ha...> wrote: > > Evan, > > It is still not quite clear to me what you want versus what you are > getting. With recent versions of mpl, the colorbar automatically uses > the same color boundaries as contourf, if that is what the colorbar is > tracking. What version of mpl are you using? > > (With the most recent mpl I see that there is a strange bug such that > setting clim clobbers the axis tick labeling for the colorbar--yet > another thing that needs to be figured out and fixed.) > |
|
From: Eric F. <ef...@ha...> - 2007-03-27 23:13:28
|
Matt Beal wrote: > Having upgraded to 2.5, I get a segfault when running a very simple plot > script (test.py) at the show() function. Prior to show() I can save to > file and the result looks good. The GUI is crashing on show(). > > Any suggestions to fix welcome (I'm guessing many of you know the > solution to this problem). I hope someone does, because I don't. But until someone comes up with the answer, here are possibly relevant questions: Did you build mpl from source? If so, did you delete the build directory before rebuilding with 2.5? My guess is that there is a version mismatch somewhere, and this is the sort of thing that can occur if a major change is made and a complete rebuild is not done. setup.py is not smart enough to always know what really needs to be rebuilt, I think. Eric > > "Annoying" debug information below: > > Thanks! > -Matt > > hostname:~/.matplotlib>cat test.py > from pylab import * > plot([1,2,3]) > show() > > hostname:~/.matplotlib>python test.py --verbose-debug-annoying -dTkAgg > matplotlib data path ..../python2.5/site-packages/matplotlib/mpl-data > $HOME=/home/username > loaded rc file /home/username/.matplotlib/matplotlibrc > matplotlib version 0.90.0 > verbose.level debug-annoying > interactive is False > platform is linux2 > loaded modules: ['_bisect', '_sha512', 'pylab', 'datetime', > 'matplotlib.tempfile ', 'distutils.sysconfig', 'encodings.encodings', 'str > uct', 'tempfile', 'pytz.os', 'zipimport', 'string', > 'matplotlib.__future__', 'pytz.tzinfo', ' pytz.datetime', 'distutils.re > <http://distutils.re>', 'bisect' > , 'signal', 'random', 'matplotlib.pytz', 'locale', 'encodings', > 'dateutil', ' matplotlib.warnings', 'pytz.pytz', 'matplotlib.sys', 're > ', 'math', 'fcntl', 'UserDict', 'distutils.os', 'matplotlib', 'codecs', > 'md5', '_locale', ' matplotlib.os', 'thread', 'itertools', 'di > stutils.sys', 'os', '__future__', '_sre', '__builtin__', 'matplotlib.re > <http://matplotlib.re>', 'operator', ' distutils.string', > 'matplotlib.datetime', 'pos > ixpath', 'errno', 'binascii', 'sre_constants', '_sha256', > 'matplotlib.md5', 'types', 'pytz.sys', '_codecs', 'pytz', 'copy', '_struct' > , '_types', 'matplotlib.dateutil', 'hashlib', 'distutils', 'posix', > 'encodings.aliases', 'exceptions', 'sre_parse', 'pytz.bisect', 'd > istutils.distutils ', 'copy_reg', 'sre_compile', '_hashlib', '_random', > 'site', '__main__', 'shutil', 'strop', 'encodings.codecs', 'ge > ttext', 'pytz.sets ', 'stat', 'warnings', 'encodings.types', > 'encodings.ascii', 'sys', 'os.path', 'pytz.gettext', 'matplotlib.distutil > s', 'distutils.errors', 'linecache', ' matplotlib.shutil', 'sets'] > numerix numarray 1.5.2 > font search path ['..../python2.5/site-packages/matplotlib/mpl-data'] > trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/cmtt10.ttf > trying fontname > ..../python2.5/site-packages/matplotlib/mpl-data/VeraMoIt.ttf > trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/cmex10.ttf > trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/VeraBI.ttf > trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/VeraBd.ttf > trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/cmmi10.ttf > trying fontname > ..../python2.5/site-packages/matplotlib/mpl-data/VeraSeBd.ttf > trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/cmr10.ttf > trying fontname > ..../python2.5/site-packages/matplotlib/mpl-data/VeraMono.ttf > trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/cmsy10.ttf > trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/Vera.ttf > CONFIGDIR=/home/username/.matplotlib > loaded ttfcache file /home/username/.matplotlib/ttffont.cache > backend TkAgg version 8.5 > FigureCanvasAgg.draw > RendererAgg.__init__ > RendererAgg.__init__ width=650.0, height=490.0 > RendererAgg.__init__ _RendererAgg done > RendererAgg.__init__ done > RendererAgg._get_agg_font > findfont found sans-serif, normal, normal 400, normal, 12.0 > findfont returning ..../python2.5/site-packages/matplotlib/mpl-data/Vera.ttf > RendererAgg._get_agg_font > RendererAgg.draw_text > RendererAgg._get_agg_font > RendererAgg.points_to_pixels > RendererAgg.points_to_pixels > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg.draw_text > RendererAgg._get_agg_font > RendererAgg.points_to_pixels > RendererAgg.points_to_pixels > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg.draw_text > RendererAgg._get_agg_font > RendererAgg.points_to_pixels > RendererAgg.points_to_pixels > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg.draw_text > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg.draw_text > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg.draw_text > RendererAgg._get_agg_font > RendererAgg.points_to_pixels > RendererAgg.points_to_pixels > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg.draw_text > RendererAgg._get_agg_font > RendererAgg.points_to_pixels > RendererAgg.points_to_pixels > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg.draw_text > RendererAgg._get_agg_font > RendererAgg.points_to_pixels > RendererAgg.points_to_pixels > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg.draw_text > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg._get_agg_font > RendererAgg.draw_text > RendererAgg._get_agg_font > Segmentation fault (core dumped) > > hostname:~/.matplotlib> > > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > > ------------------------------------------------------------------------ > > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
|
From: Eric F. <ef...@ha...> - 2007-03-27 23:05:18
|
C M wrote:
> Hi, I'm new to mpl and want to learn date plotting. Would like to start
> with the demo, but date_demo1 won't run for me. (My specs: winXP,
> Python 2.5, matplotlib 0.9.0, numpy 1.0, and yes was connected to the
> internet when I ran it). I just copied into IDLE and saved it and got
> this error:
>
> Traceback (most recent call last):
> File "C:/Documents and Settings/user/Desktop/datedemo.py", line 22, in
> <module>
> quotes = quotes_historical_yahoo('INTC', date1, date2)
> File "C:\Python25\lib\site-packages\matplotlib\finance.py", line 153,
> in quotes_historical_yahoo
> try: ret = parse_yahoo_historical(fh, asobject, adjusted)
> File "C:\Python25\lib\site-packages\matplotlib\finance.py", line 53,
> in parse_yahoo_historical
> dt = datetime.date(*time.strptime(datestr, '%d-%b-%y')[:3])
> File "C:\Python25\lib\_strptime.py", line 310, in strptime
> (data_string, format))
> ValueError: time data did not match format: data=2003-12-01 fmt=%d-%b-%y
>
> Any idea what I'm doing wrong?
You are not doing anything wrong. I noticed the bug recently also. I
don't know when or why it started. It is not python 2.5-specific; I see
it while running 2.4 and svn mpl.
Thanks for reporting it.
Eric
>
> Thanks,
> Che
|
|
From: Eric F. <ef...@ha...> - 2007-03-27 22:57:12
|
Evan, It is still not quite clear to me what you want versus what you are getting. With recent versions of mpl, the colorbar automatically uses the same color boundaries as contourf, if that is what the colorbar is tracking. What version of mpl are you using? (With the most recent mpl I see that there is a strange bug such that setting clim clobbers the axis tick labeling for the colorbar--yet another thing that needs to be figured out and fixed.) Eric Evan Mason wrote: > Sorry, I realise that my example in my original post doesn't quite make > sense. My data range is 17 to 23. I set clim to be clim([15, 25]). I > then want the colorbar limits to be the same as clim, 15 to 25. The > questions remains the same, which is how to set the range for colorbar. > > Thanks, Evan |
|
From: Pierre GM <pgm...@gm...> - 2007-03-27 21:19:45
|
On Tuesday 27 March 2007 16:27:35 C M wrote: > ValueError: time data did not match format: data=2003-12-01 fmt=%d-%b-%y > > Any idea what I'm doing wrong? Well, if data='2003-12-01', the format should be "%y-%m-%d" or "%y-%d-%m" depending on the local convention. Here, 2003 is interpreted as a day, which of course doesn't work. |
|
From: Evan M. <eva...@gm...> - 2007-03-27 21:01:21
|
Sorry, I realise that my example in my original post doesn't quite make sense. My data range is 17 to 23. I set clim to be clim([15, 25]). I then want the colorbar limits to be the same as clim, 15 to 25. The questions remains the same, which is how to set the range for colorbar. Thanks, Evan |
|
From: Robert K. <rob...@gm...> - 2007-03-27 20:49:01
|
Tyler Hayes wrote: > Ideally I'd like to just make the one call: > > from pylab import * > > Which would load SciPy (& NumPy) automatically I recommend simply making your own file with all of the imports you need. Implicitly relying on scipy being the chosen 'numerix' will make your code difficult to understand. -- Robert Kern "I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible by our own mad attempt to interpret it as though it had an underlying truth." -- Umberto Eco |
|
From: Evan M. <eva...@gm...> - 2007-03-27 20:32:24
|
Hi I want to set the limits of my colorbar to something different from that of my plot. For example I have a contourf plot where I set the colour limits to be, say: clim([15, 25]) But I want the limits of the colorbar to be 10 and 30. I suspect this is something to do with mappable and vmin and vmax, but I don't see anything specific about how to do this, either on this forum or on mpl/sourceforge. Thanks for any help, Evan |
|
From: C M <cmp...@gm...> - 2007-03-27 20:27:39
|
Hi, I'm new to mpl and want to learn date plotting. Would like to start
with the demo, but date_demo1 won't run for me. (My specs: winXP, Python
2.5, matplotlib 0.9.0, numpy 1.0, and yes was connected to the internet when
I ran it). I just copied into IDLE and saved it and got this error:
Traceback (most recent call last):
File "C:/Documents and Settings/user/Desktop/datedemo.py", line 22, in
<module>
quotes = quotes_historical_yahoo('INTC', date1, date2)
File "C:\Python25\lib\site-packages\matplotlib\finance.py", line 153, in
quotes_historical_yahoo
try: ret = parse_yahoo_historical(fh, asobject, adjusted)
File "C:\Python25\lib\site-packages\matplotlib\finance.py", line 53, in
parse_yahoo_historical
dt = datetime.date(*time.strptime(datestr, '%d-%b-%y')[:3])
File "C:\Python25\lib\_strptime.py", line 310, in strptime
(data_string, format))
ValueError: time data did not match format: data=2003-12-01 fmt=%d-%b-%y
Any idea what I'm doing wrong?
Thanks,
Che
|
|
From: Matt B. <mat...@gm...> - 2007-03-27 19:36:42
|
Having upgraded to 2.5, I get a segfault when running a very simple plot
script (test.py) at the show() function. Prior to show() I can save to file
and the result looks good. The GUI is crashing on show().
Any suggestions to fix welcome (I'm guessing many of you know the solution
to this problem).
"Annoying" debug information below:
Thanks!
-Matt
hostname:~/.matplotlib>cat test.py
from pylab import *
plot([1,2,3])
show()
hostname:~/.matplotlib>python test.py --verbose-debug-annoying -dTkAgg
matplotlib data path ..../python2.5/site-packages/matplotlib/mpl-data
$HOME=/home/username
loaded rc file /home/username/.matplotlib/matplotlibrc
matplotlib version 0.90.0
verbose.level debug-annoying
interactive is False
platform is linux2
loaded modules: ['_bisect', '_sha512', 'pylab', 'datetime', '
matplotlib.tempfile', 'distutils.sysconfig', 'encodings.encodings', 'str
uct', 'tempfile', 'pytz.os', 'zipimport', 'string', 'matplotlib.__future__',
'pytz.tzinfo', 'pytz.datetime', 'distutils.re', 'bisect'
, 'signal', 'random', 'matplotlib.pytz', 'locale', 'encodings', 'dateutil',
'matplotlib.warnings', 'pytz.pytz', 'matplotlib.sys', 're
', 'math', 'fcntl', 'UserDict', 'distutils.os', 'matplotlib', 'codecs',
'md5', '_locale', 'matplotlib.os', 'thread', 'itertools', 'di
stutils.sys', 'os', '__future__', '_sre', '__builtin__', 'matplotlib.re',
'operator', 'distutils.string', 'matplotlib.datetime', 'pos
ixpath', 'errno', 'binascii', 'sre_constants', '_sha256', 'matplotlib.md5',
'types', 'pytz.sys', '_codecs', 'pytz', 'copy', '_struct'
, '_types', 'matplotlib.dateutil', 'hashlib', 'distutils', 'posix', '
encodings.aliases', 'exceptions', 'sre_parse', 'pytz.bisect', 'd
istutils.distutils', 'copy_reg', 'sre_compile', '_hashlib', '_random',
'site', '__main__', 'shutil', 'strop', 'encodings.codecs', 'ge
ttext', 'pytz.sets', 'stat', 'warnings', 'encodings.types', 'encodings.ascii',
'sys', 'os.path', 'pytz.gettext', 'matplotlib.distutil
s', 'distutils.errors', 'linecache', 'matplotlib.shutil', 'sets']
numerix numarray 1.5.2
font search path ['..../python2.5/site-packages/matplotlib/mpl-data']
trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/cmtt10.ttf
trying fontname
..../python2.5/site-packages/matplotlib/mpl-data/VeraMoIt.ttf
trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/cmex10.ttf
trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/VeraBI.ttf
trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/VeraBd.ttf
trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/cmmi10.ttf
trying fontname
..../python2.5/site-packages/matplotlib/mpl-data/VeraSeBd.ttf
trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/cmr10.ttf
trying fontname
..../python2.5/site-packages/matplotlib/mpl-data/VeraMono.ttf
trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/cmsy10.ttf
trying fontname ..../python2.5/site-packages/matplotlib/mpl-data/Vera.ttf
CONFIGDIR=/home/username/.matplotlib
loaded ttfcache file /home/username/.matplotlib/ttffont.cache
backend TkAgg version 8.5
FigureCanvasAgg.draw
RendererAgg.__init__
RendererAgg.__init__ width=650.0, height=490.0
RendererAgg.__init__ _RendererAgg done
RendererAgg.__init__ done
RendererAgg._get_agg_font
findfont found sans-serif, normal, normal 400, normal, 12.0
findfont returning ..../python2.5/site-packages/matplotlib/mpl-data/Vera.ttf
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg.points_to_pixels
RendererAgg.points_to_pixels
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg._get_agg_font
RendererAgg.draw_text
RendererAgg._get_agg_font
Segmentation fault (core dumped)
hostname:~/.matplotlib>
|
|
From: Tyler H. <hay...@gm...> - 2007-03-27 19:32:07
|
Hello All: I have a qucik question. I like to use SciPy for many of the extra functions it provides on top of NumPy. I also like to use matplotlib to visualize my data. Currently, I use the following in the majority of my Python codes: from pylab import * import scipy I know that in the matplotlibrc file we can set either NUMERIC, NUMARRAY, or NUMPY. Is it possible to set the value to SCIPY (which loads NumPy) so I only have to load the one module? Or does this cause clashes with other functions? Ideally I'd like to just make the one call: from pylab import * Which would load SciPy (& NumPy) automatically Cheers, t. -- Tyler Joseph Hayes GPG Key ID# 0x3AE05130 |
|
From: Antonino I. <tri...@gm...> - 2007-03-27 17:35:11
|
Hi to the list,
I'm searching to display in realtime some data read serial port. The
data is a 2D matrix and is read element wise from the serial, one
pixel each one (or more) seconds.
I'm running the script from "ipython -pylab" using the command "run
scriptname". After "loading" the script I interactively launch the
function that start the data acquisition and I would like to see the
acquired data so far. In the loop that perform the data acquisition
I'm currently calling this function to plot data:
def plot_data_in_itinere(data, **kwargs):
global first_plot
d = data.ravel()[find(data.ravel() > 0)]
m = d.mean()
vr = round(5*d.std() / m, 3)
#clf()
title('Scanning Data')
xlabel('Mean Value: '+str(int(round(m)))+' -- Relative Variation: '+str(vr))
b,t = ylim()
ylim(t,b)
imshow(data.astype(float),
interpolation='nearest',
vmin=0,
origin='lower', **kwargs)
if first_plot:
colorbar()
first_plot = False
However the call to the function is "blocking". So the acquisition
time is longer (not only I have to wait the data but I have to wait
the plot too). Furthermore, this function plot the new data above the
old one, so the plot becomes slower and slower while the acquisition
goes on. If I uncommented the cla() line, I get a plot that is blank
most of the time and that shows the data only for a fraction of second
while the new plot is performed.
Is there a way to update (or substitute) the current showed matrix
data, deleting the old plots (in the axis). I have to confess that
I've have not understand well how the pylab interactive mode works.
Ideally the plot should be performed in background, while the script
goes on and wait the next data arrival. I've tried to do this with a
simple gtk app that embeds a matplotlib plot. Hoever, I don't know how
to send the application in background. I've tried to do something like
this:
class PlotScanApp:
...
class GuiThread(threading.Thread):
def run(self):
gtk.main()
if __name__ == '__main__':
stdout = sys.stdout
a = array(randn(100)).reshape(10,10)
p = PlotScanApp(a)
p.start()
print 'Start image update:'
for i in range(10):
sleep(1)
stdout.write('.')
stdout.flush()
p.plot(array(randn(100)).reshape(10,10))
the PlotScanApp implement the gui (full files attached). Running the
script the image should be updated with random data each 1 sec. but
only the first image is showed. I suppose this is not the way to put a
gui drawing app in background...
Any hints in how to do in the right way this gtk app that when
required update the plot?
Thank a lot.
Ciao,
~ Antonio
|
|
From: Matthieu B. <mat...@gm...> - 2007-03-27 15:28:54
|
Hi, I tried to dig into the 3D code, and in fact, it is RegularPolyCollection that seems to be incompatible with Axes3D. Axes3D uses _verts to create z values, and it crashes when trying to figure out how to display it (art3d.pylines 208-221). I don't know enough to correct it. But I have another idea, but I suppose some had it before. In the plot, scatter, ... code, only one colour can be used, it is tested upon, so my question will be, why not enhancing the test to allow colors for each point ? it would be a sequence of the same size as x or y, but with rgba value, or tuples, ... Matthieu P.S. : if I had more time, I would try to solve the problem, but at the moment, I can't :( 2007/3/12, Eric Firing <ef...@ha...>: > > Matthieu Brucher wrote: > > OK, I'm trying to the same but in 3D, and there, no documentaion. > > I tried to launch axes3d.py to see exactly what I can do, but the > > example file does not work. For instance, Axes3D takes two parameters > > for method __init__ and only one is provided. Did someone test it ? > > I'm trying to use collection as well, but for once I prefer MatLab > > simplicity here, it's way to complicated, some arguments must be zipped, > > other are passed not in the collection, but when the collection is added > > to the subplot, ... > > Is there a simple and clear way to do 3D plotting with collections ? > > There may be, but all 3D plotting is shaky right now. The 3D code is > essentially unmaintained and unsupported. > > Eric > |
|
From: Ryan K. <rya...@gm...> - 2007-03-27 13:57:24
|
I am not running Debian and am not on a linux box right now. I can be in a few minutes. I think we should move this to the matplotlib users list. Someone there can help you install on Debian. Ryan On 3/27/07, javi markez bigara <no...@ho...> wrote: > this is where the folder is > /home2/diazdeim/matplotlib-0.90.0 > i want to run the setup from the terminal but i dont know how to do it > thaks for helping > > > >From: "javi markez bigara" <no...@ho...> > >Reply-To: SciPy Users List <sci...@sc...> > >To: sci...@sc... > >Subject: Re: [SciPy-user] plotting with scipy > >Date: Tue, 27 Mar 2007 13:48:01 +0000 > > > > > >this is the python i am using, i download the mathplotlib but i think is > >not > >working > >i just save it in the Desktop.. and this is the forder i get: > >matplotlib-0.90.0 > > > >Python 2.3.5 (#2, Sep 4 2005, 22:01:42) > >[GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2 > > > > > > >From: "Ryan Krauss" <rya...@gm...> > > >Reply-To: SciPy Users List <sci...@sc...> > > >To: "SciPy Users List" <sci...@sc...> > > >Subject: Re: [SciPy-user] plotting with scipy > > >Date: Tue, 27 Mar 2007 08:37:52 -0500 > > > > > >What platform are you running? There should be an executable for > > >windows that puts them in the proper directory. They can go anywhere > > >on your PYTHONPATH, but the right answer is in the directory > > >C:\Python24\Lib\site-packages > > >(or I presume Python25 if you are running the current version of pytho= n). > > > > > >So, I have the folders > > >C:\Python24\Lib\site-packages\matplotlib > > >C:\Python24\Lib\site-packages\scipy > > >etc. > > > > > >On linux, you usually want to unzip the tarball and there should be a > > >setup.py file in the top level. Then just run > > >sudo python setup.py install > > >(or similar if you aren't on a debian based "sudo" distribution). > > > > > >Let me know if you still have trouble. > > > > > >Ryan > > > > > >On 3/27/07, javi markez bigara <no...@ho...> wrote: > > > > > > > > thanks a lot for ur reply i will download it but the thig is that i > >dont > > > > know were to put it them to import it from python..... > > > > thanks a lot Ryan > > > > nowar > > > > > > > > >From: "Ryan Krauss" <rya...@gm...> > > > > >Reply-To: SciPy Users List <sci...@sc...> > > > > >To: "SciPy Users List" <sci...@sc...> > > > > >Subject: Re: [SciPy-user] plotting with scipy > > > > >Date: Tue, 27 Mar 2007 07:30:48 -0500 > > > > > > > > > >I think almost all users of scipy use matplotlib instead of scipy'= s > > > > >plotting capabilities. It is really a great package especially if > >you > > > > >only need 2D plotting. Check out matplotlib.sourceforge.net. > > > > > > > > > >Ryan > > > > > > > > > >On 3/27/07, javi markez bigara <no...@ho...> wrote: > > > > > > hi, > > > > > > > > > > > > i am looking for the easy way to plot some coordinates with > > > > > > scipy.gplt.pyPlot this is how i try it but is not working as i > >would > > > > >like > > > > > > to.... > > > > > > the new list is a list of pair coordinates something like this: > > > > > > > > > > > > [-6.654644,65.55555] > > > > > > [-6.645654,65.98798] > > > > > > [-6.987813,65.28951] > > > > > > [-6.645654,65.65987] > > > > > > [-6.634895,65.36985] > > > > > > > > > > > > >>>import scipy.plt > > > > > > >>>from scipy import gplt > > > > > > >>>draw=3Dscipy.gplt.pyPlot.Plot() > > > > > > >>>draw.plot(newlist) > > > > > > >>>draw.title('little map') > > > > > > >>>draw.xtitle('longitude') > > > > > > >>>draw.ytitle('latitude') > > > > > > > > > > > > the thing is that i get in the x axes the number of list and th= en > > >two > > > > >strait > > > > > > lines > > > > > > > > > > > > > > > > > > 65_________________________________ > > > > > > 50 > > > > > > 35 > > > > > > 20 > > > > > > 5 > > > > > > -10------------------------------------------------- > > > > > > 0 1 2 3 4 5 ...........= . > > > > > > > > > > > > this is wat it plots more or less > > > > > > can anybody help me. > > > > > > thanks in advance > > > > > > Nowar00 > > > > > > > > > > > > _______________________________________________________________= __ > > > > > > Descarga gratis la Barra de Herramientas de MSN > > > > > > > > > > > > > > > >http://www.msn.es/usuario/busqueda/barra?XAPID=3D2031&DI=3D1055&SU=3Dh= ttp%3A//www.hotmail.com&HL=3DLINKTAG1OPENINGTEXT_MSNBH > > > > > > > > > > > > _______________________________________________ > > > > > > SciPy-user mailing list > > > > > > Sci...@sc... > > > > > > http://projects.scipy.org/mailman/listinfo/scipy-user > > > > > > > > > > >_______________________________________________ > > > > >SciPy-user mailing list > > > > >Sci...@sc... > > > > >http://projects.scipy.org/mailman/listinfo/scipy-user > > > > > > > > _________________________________________________________________ > > > > Acepta el reto MSN Premium: Correos m=E1s divertidos con fotos y te= xtos > > > > incre=EDbles en MSN Premium. Desc=E1rgalo y pru=E9balo 2 meses grat= is. > > > > > > >http://join.msn.com?XAPID=3D1697&DI=3D1055&HL=3DFooter_mailsenviados_c= orreosmasdivertidos > > > > > > > > _______________________________________________ > > > > SciPy-user mailing list > > > > Sci...@sc... > > > > http://projects.scipy.org/mailman/listinfo/scipy-user > > > > > > >_______________________________________________ > > >SciPy-user mailing list > > >Sci...@sc... > > >http://projects.scipy.org/mailman/listinfo/scipy-user > > > >_________________________________________________________________ > >Grandes =E9xitos, superh=E9roes, imitaciones, cine y TV... > >http://es.msn.kiwee.com/ Lo mejor para tu m=F3vil. > > > >_______________________________________________ > >SciPy-user mailing list > >Sci...@sc... > >http://projects.scipy.org/mailman/listinfo/scipy-user > > _________________________________________________________________ > Acepta el reto MSN Premium: Correos m=E1s divertidos con fotos y textos > incre=EDbles en MSN Premium. Desc=E1rgalo y pru=E9balo 2 meses gratis. > http://join.msn.com?XAPID=3D1697&DI=3D1055&HL=3DFooter_mailsenviados_corr= eosmasdivertidos > > _______________________________________________ > SciPy-user mailing list > Sci...@sc... > http://projects.scipy.org/mailman/listinfo/scipy-user > |
|
From: Nils W. <nw...@ia...> - 2007-03-27 07:49:05
|
Hi all, The script available at http://projects.scipy.org/scipy/scipy/ticket/390 yields True parameters: (5.0, 1.0, -5.0), Guess parameters: (4.0, 1.5, -4.0) Optimization terminated successfully. Current function value: 33.309244 Iterations: 15 Function evaluations: 23 Gradient evaluations: 23 Bfgs: [ 5.2463809 1.00388921 -4.71114799] Traceback (most recent call last): File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_gtk.py", line 284, in expose_event self._render_figure(self._pixmap, w, h) File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py", line 73, in _render_figure FigureCanvasAgg.draw(self) File "/usr/lib64/python2.4/site-packages/matplotlib/backends/backend_agg.py", line 392, in draw self.figure.draw(renderer) File "/usr/lib64/python2.4/site-packages/matplotlib/figure.py", line 567, in draw for a in self.axes: a.draw(renderer) File "/usr/lib64/python2.4/site-packages/matplotlib/axes.py", line 1281, in draw a.draw(renderer) File "/usr/lib64/python2.4/site-packages/matplotlib/legend.py", line 208, in draw self._update_positions(renderer) File "/usr/lib64/python2.4/site-packages/matplotlib/legend.py", line 570, in _update_positions ox, oy = self._find_best_position(w, h) File "/usr/lib64/python2.4/site-packages/matplotlib/legend.py", line 440, in _find_best_position verts, bboxes, lines = self._auto_legend_data() File "/usr/lib64/python2.4/site-packages/matplotlib/legend.py", line 357, in _auto_legend_data hlines = handle.get_lines() AttributeError: LineCollection instance has no attribute 'get_lines' Nils |
|
From: Suresh P. <sto...@ya...> - 2007-03-27 00:33:38
|
Thanks again Eric for the updated matshow(). I apologise for repeating: Since it has been decided (has it?) that matshow will retain the feature that a new figure is created (with aspect ratio matching the matrix), then if one adds a colorbar (a typical thing to do), the matrix height is smaller than the colorbar, which is not visually appealing. Also, it is fairly common to desire combining a matrix visualisation with other plots, and hence the new figure becomes an issue. Of course, I guess one could use Axes.matshow() now to avoid the above. If that is to be the case, fine. One very minor thing to note: the new matshow() is missing ticks on the lower x-axis. Thanks again for the excellent support for a function that clearly a lot of people are using. Cheers, Suresh |