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
(7) |
2
|
3
|
4
(1) |
5
|
6
(3) |
7
(1) |
8
(5) |
9
(15) |
10
(15) |
11
(6) |
12
(7) |
13
|
14
(3) |
15
(10) |
16
(11) |
17
(17) |
18
(4) |
19
(6) |
20
|
21
(1) |
22
(5) |
23
(4) |
24
|
25
|
26
(7) |
27
(2) |
28
(4) |
29
(9) |
30
(11) |
|
|
|
|
From: Darren D. <dd...@co...> - 2004-11-27 02:23:45
|
On Friday 26 November 2004 12:04 pm, John Hunter wrote: > >>>>> "Jouni" =3D=3D Jouni K Sepp=E4nen <jk...@ik...> writes: > > Jouni> Hi, One thing that I really like about Matlab's handle > Jouni> graphics system is that it is self-documenting: if I do > Jouni> h=3Dplot(...), I can query the current values of all > Jouni> properties with get: > > This is a very useful feature in matplotlib. Thanks for your patch. > I ended up implementing this functionality, but using a different > approach than your query methods. =20 I updating from cvs now, I can't wait to try this out! I used this in Matla= b=20 all the time. =2D-=20 Darren |
From: John H. <jdh...@ac...> - 2004-11-26 17:05:27
|
>>>>> "Jouni" =3D=3D Jouni K Sepp=E4nen <jk...@ik...> writes: Jouni> Hi, One thing that I really like about Matlab's handle Jouni> graphics system is that it is self-documenting: if I do Jouni> h=3Dplot(...), I can query the current values of all Jouni> properties with get: This is a very useful feature in matplotlib. Thanks for your patch. I ended up implementing this functionality, but using a different approach than your query methods. Instead, I added formatted strings to the doc strings of each setter that describe what that function accepts, eg def set_linestyle(self, s): """ Set the linestyle of the line ACCEPTS: [ '-' | '--' | '-.' | ':' | 'steps' | 'None' ] """ set now parses this information and uses it to display the properties. In the CVS version of matplotlib, you can get this information, as in matlab, with # report accepts info on all properties set(line) # report accepts info on linestyle property set(line, 'linestyle') # print the value of all properties get(line) # print the value of the linestyle property get(line, 'linestyle') Very nice! See the files examples/set_and_get.py in CVS. Here is some sample output 1 >>> lines =3D plot([1,2,3]) 2 >>> set(lines) alpha: float antialiased or aa: [True | False] clip_box: a matplotlib.transform.Bbox instance clip_on: [True | False] color or c: any matplotlib color - see help(colors) dashes: sequence of on/off ink in points data: (array xdata, array ydata) data_clipping: [True | False] figure: a matplotlib.figure.Figure instance label: any string linestyle or ls: [ '-' | '--' | '-.' | ':' | 'steps' | 'None' ] linewidth or lw: float lod: [True | False] marker: [ '+' | ',' | '.' | '1' | '2' | '3' | '4' | '<' | '>' | 'D' | 'H' | '^' | '_' | 'd' | 'h' | 'o' | 'p' | 's' | 'v' | 'x' | '|' ] markeredgecolor or mec: any matplotlib color - see help(colors) markeredgewidth or mew: float markerfacecolor or mfc: any matplotlib color - see help(colors) markersize or ms: float transform: a matplotlib.transform transformation instance vertical_offset: DEPRECATED visible: [True | False] xclip: (xmin, xmax) xdata: array yclip: (ymin, ymax) ydata: array 3 >>> . Thanks for the suggestion! JDH |
From: John H. <jdh...@ac...> - 2004-11-26 16:59:46
|
>>>>> "Transier," == Transier, Frederik <fre...@sa...> writes: Frederik> Hello, while I was trying to build the matplotlib 0.64 Frederik> with python 2.4 on my win xp machine Frederik> a lot of errors occurred. Has anyone managed to install Frederik> it under these conditions? Frederik> Or is there any location I can download the binaries Frederik> for python 2.4 and win xp? Frederik> Any help would be appreciated. Building on windows is a pain. I'll try to include a python2.4rc1 installer with the next release, possibly next week. If you need something sooner, you'll have to post some more information to the list. Have you read the instructions for building win32 in setupext.py, and downloaded the win32_static file from the matplotlib web site that is pointed to in setupext? JDH |
From: John H. <jdh...@ac...> - 2004-11-26 16:57:29
|
>>>>> "Darrell" == Darrell Silver <da...@cl...> writes: Darrell> Hi, first time user, first time installer... Darrell> Is there a howto for matplotlib installation on redhat Darrell> 7.3/as2.1 & as3.0? Darrell> I'm trying to install matplotlib on these platforms and Darrell> am running into a seemingly endless list of dependancies Darrell> for python2.2, numarray: Darrell> just on the 7.3 side, - freetype >= 2.1.7 is needed, but Darrell> rh has 2.0.9-2. - pygtk >= 1.99.16 needed, rh has Darrell> 1.99.8-7. - pygtk 2.2.0 needs glib >= 2.2.0, redhat has Darrell> 1.2.10-5, - pygtk 1.99.16 compiles, but I get error Darrell> "ImportError: /usr/lib/libpangoxft-1.0.so.0 undefinded Darrell> symbol: FT_Seek_Stream", which I haven't tracked down Darrell> just yet... - the line "inf = infty = Infinity = Darrell> _ieee.inf" in na_imports.py fails to find 'inf' in Darrell> '_ieee', but commenting it out works fine. - While the Darrell> install webpage says I only need freetype,libpng,zlib to Darrell> compile, I get runtime complaints on import of Darrell> matplotlib.matlab * (running simple_plot.py) about Darrell> missing image libraries if I don't turn the BUILD_IMAGE Darrell> flag on. I have compiled matplotlib on 7.3 but it's been a while. Rather than upgrading to the latest pygtk, which will require a major upgrade of all your gtk libs and their dependencies, try getting pygtk-1.99.16. Since you already have pygtk-1.99.x, I think you should be able to compile this. And install freetype 2.1.7 or later, and numarray 1.1 or later, and try again. With luck, with these packages you'll get much farther. I suggest you try to compile pygtk with --enable-thread and --enable-numpy When building matplotlib, set the following in setup.py BUILD_IMAGE = 1 BUILD_AGG = 1 BUILD_GTKAGG = 1 BUILD_TKAGG = 0 BUILD_WINDOWING = 0 If you can't build, please post the build output to the list and we'll take it from there. Good luck! JDH Darrell> This is all way too difficult me as I'm not looking Darrell> forward to upgrading so many packages across our Darrell> production machines...am I missing something obvious? Darrell> Perhaps an older version of matplotlib known to work on Darrell> this redhat? I'm just using it for simple time-series Darrell> plots, real-time and to some file (png, gif, ps, pdf...). Darrell> thanks in advance for any help, Darrell> Darrell Darrell> ------------------------------------------------------- Darrell> SF email is sponsored by - The IT Product Guide Read Darrell> honest & candid reviews on hundreds of IT Products from Darrell> real users. Discover which products truly live up to the Darrell> hype. Start reading Darrell> now. http://productguide.itmanagersjournal.com/ Darrell> _______________________________________________ Darrell> Matplotlib-users mailing list Darrell> Mat...@li... Darrell> https://lists.sourceforge.net/lists/listinfo/matplotlib-users |
From: John H. <jdh...@ac...> - 2004-11-26 16:49:19
|
>>>>> "christophe" == christophe grimault <chr...@no...> writes: christophe> The import of the numeric version of the _transforms christophe> module, _nc_transforms, failed. This is either christophe> because numeric was unavailable when matplotlib was christophe> compiled, or because a dependency of _nc_transforms christophe> could not be satisfied. If it appears that christophe> _nc_transforms was not built, make sure you have a christophe> working copy of numeric and then re-install christophe> matplotlib. Otherwise, the following traceback gives christophe> more details: Try rm -rf ing your build directory and your site-packages/matplotlib directory and do a clean rebuild and reinstall. We've seen a lot of problems not too different from yours when installing recent versions of matplotlib over older versions. If you're still encountering troubles, post back and we'll try something different. christophe> ImportError: christophe> /usr/local/lib/python2.3/site-packages/matplotlib/_nc_transforms.so: christophe> undefined symbol: _ZNSs4_Rep20_S_empty_rep_storageE This is a linker error, I don't think changing your include paths will help. christophe> I tried many things in the setupext.py. Freetype is christophe> correctly installed and Numeric is in christophe> /opt/Numeric23.1. I added this to the christophe> script.... because the way it appends include/lib path christophe> seems a little buggy to me. christophe> I also tried other things. I still get the same error christophe> message. I'm stuck ! Has anyone encoutered this christophe> problem ? solved it ? Shall i install a newer version christophe> of Numeric ? In an other place than /opt ? matplotlib certainly works with Numeric 23.1. I would advise you to upgrade to the latest Numeric because many bugs have been fixed since 23.1, but it won't stop matplotlib from working. JDH |
From: John H. <jdh...@ac...> - 2004-11-26 16:43:16
|
>>>>> "Daniel" == Daniel Newton <da...@ne...> writes: Daniel> Hi, I am trying to make a legend transparent (using Daniel> GTKAgg) as sometimes it is quite big an obscures part of Daniel> my graphs. Daniel> I have tryed this with no luck: l = figure.legend(lines, Daniel> names, legend) l.set_alpha(.5) Daniel> is this possible? Is it the entire legend you want to make transparent, or simply the rectangular background? For the latter, you need to set the alpha on the legend "frame". You have two options here leg = legend(blah, blah) leg.draw_frame(False) # turn it off entirely or frame = leg.get_frame() frame.set_alpha(0.5) # make it semi-transparent See http://matplotlib.sf.net/examples/legend_demo.py for an example of getting handles to all the lines, patches and texts in the legend, whose properties you can set independently. There has been a discussion on whether it would be desirable for a set call on an object to propagate to all the objects it contains. Ie, would it be a good thing to be able to do set(leg, alpha=0.5) and have this propogate to the legend frame, lones, patches, and text instances. Or is the current setup where you control each of these objects independently preferable? JDH |
From: christophe g. <chr...@no...> - 2004-11-26 09:31:27
|
Hi all, I've successfully used version 0.52. Yesterday I installed v0.64 on my RH9 linux box. The build and install went OK. However, when I try to play with it, I get: The import of the numeric version of the _transforms module, _nc_transforms, failed. This is either because numeric was unavailable when matplotlib was compiled, or because a dependency of _nc_transforms could not be satisfied. If it appears that _nc_transforms was not built, make sure you have a working copy of numeric and then re-install matplotlib. Otherwise, the following traceback gives more details: Traceback (most recent call last): .... from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas File "/usr/local/lib/python2.3/site-packages/matplotlib/backends/__init__.py", line 20, in ? globals(),locals(),[backend_name]) File "/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_wxagg.py", line 18, in ? from backend_agg import FigureCanvasAgg File "/usr/local/lib/python2.3/site-packages/matplotlib/backends/backend_agg.py", line 78, in ? from matplotlib.backend_bases import RendererBase,\ File "/usr/local/lib/python2.3/site-packages/matplotlib/backend_bases.py", line 13, in ? from patches import Rectangle File "/usr/local/lib/python2.3/site-packages/matplotlib/patches.py", line 5, in ? from artist import Artist File "/usr/local/lib/python2.3/site-packages/matplotlib/artist.py", line 4, in ? from transforms import identity_transform File "/usr/local/lib/python2.3/site-packages/matplotlib/transforms.py", line 188, in ? from _transforms import Value, Point, Interval, Bbox, Affine File "/usr/local/lib/python2.3/site-packages/matplotlib/_transforms.py", line 11, in ? from matplotlib._nc_transforms import * ImportError: /usr/local/lib/python2.3/site-packages/matplotlib/_nc_transforms.so: undefined symbol: _ZNSs4_Rep20_S_empty_rep_storageE I tried many things in the setupext.py. Freetype is correctly installed and Numeric is in /opt/Numeric23.1. I added this to the script.... because the way it appends include/lib path seems a little buggy to me. def add_ft2font_flags(module): 'Add the module flags to build extensions which use gd' .... module.include_dirs.append('/usr/local/include/freetype2/freetype') .... and def add_agg_flags(module): 'Add the module flags to build extensions which use agg' # before adding the freetype flags since -z comes later module.libraries.append('png') module.libraries.append('z') add_base_flags(module) module.include_dirs.extend(['src','agg22/include', '.']) module.include_dirs.append('/opt/Numeric-23.1/Include') # put these later for correct link order module.libraries.extend(['stdc++', 'm']) I also tried other things. I still get the same error message. I'm stuck ! Has anyone encoutered this problem ? solved it ? Shall i install a newer version of Numeric ? In an other place than /opt ? Any help would be geatly appreciated ! Christophe |
From: Daniel N. <da...@ne...> - 2004-11-26 02:45:51
|
Hi, I am trying to make a legend transparent (using GTKAgg) as sometimes it is quite big an obscures part of my graphs. I have tryed this with no luck: l = figure.legend(lines, names, legend) l.set_alpha(.5) is this possible? Thanks Dan |
From: Darrell S. <da...@cl...> - 2004-11-23 20:11:58
|
Hi, first time user, first time installer... Is there a howto for matplotlib installation on redhat 7.3/as2.1 & as3.0? I'm trying to install matplotlib on these platforms and am running into a seemingly endless list of dependancies for python2.2, numarray: just on the 7.3 side, - freetype >= 2.1.7 is needed, but rh has 2.0.9-2. - pygtk >= 1.99.16 needed, rh has 1.99.8-7. - pygtk 2.2.0 needs glib >= 2.2.0, redhat has 1.2.10-5, - pygtk 1.99.16 compiles, but I get error "ImportError: /usr/lib/libpangoxft-1.0.so.0 undefinded symbol: FT_Seek_Stream", which I haven't tracked down just yet... - the line "inf = infty = Infinity = _ieee.inf" in na_imports.py fails to find 'inf' in '_ieee', but commenting it out works fine. - While the install webpage says I only need freetype,libpng,zlib to compile, I get runtime complaints on import of matplotlib.matlab * (running simple_plot.py) about missing image libraries if I don't turn the BUILD_IMAGE flag on. This is all way too difficult me as I'm not looking forward to upgrading so many packages across our production machines...am I missing something obvious? Perhaps an older version of matplotlib known to work on this redhat? I'm just using it for simple time-series plots, real-time and to some file (png, gif, ps, pdf...). thanks in advance for any help, Darrell |
From: John H. <jdh...@ac...> - 2004-11-23 15:34:32
|
>>>>> "Jeremy" == Jeremy Sanders <js...@as...> writes: Jeremy> Hi - I installed matplotlib into an alternative directory Jeremy> (using --home=/usr/local/python/python-2.3-FC2). Jeremy> I edited my .matplotlibrc file to set the data directory Jeremy> to /usr/local/python/python-2.3-FC2/share/matplotlib, but Jeremy> it doesn't seem to work: I assume /usr/local/python/python-2.3-FC2/share/matplotlib exists and contains, for example, the *.ttf, *.afm, etc files ? Are you sure the rc file you are editing is being found and loaded. Where are you placing the rc file? The search order for rc is * current working dir * environ var MATPLOTLIBRC * HOME/.matplotlibrc * MATPLOTLIBDATA/.matplotlibrc Jeremy> (BTW the bottom appears to be a bug - report_error should Jeremy> be given 3 arguments) Yes, this is fixed in CVS, thanks. Jeremy> I've also tried specifiying the Jeremy> /usr/local/python/python-2.3-FC2/ and Jeremy> /usr/local/python/python-2.3-FC2/share, but neither work. Jeremy> Is there any reason why the location of the data directory Jeremy> can't be put into matplotlib when it is installed? This Jeremy> would be much more convenient. It would also be nice if Jeremy> matplotlib can find the location of .matplotlibrc if there Jeremy> isn't one in the user's directory. When sing an alternate Jeremy> installation directory, it can't find one at the moment. Sorry for all your troubles. There are a couple of additional hints that may help you get your environment configured properly. First, run a test script, eg examples/simple_plot.py with the --verbose-helpful flag. This will give you information at runtime about what resources matplotlib is loading, eg what data path matplotlib is using, what rc file etc. As indicated above, there are two additional things you can do to help matplotlib find it's data files. One, you can place an rc file in your working directory if you don't want to use a home directory for it. Secondly, you can set the environment variable MATPLOTLIBDATA as described at http://matplotlib.sourceforge.net/installing.html. Hopefully with some combination of the extra ways to point matplotlib to its data files and the extra diagnostic information from the verbose flag, you can get this working. Assuming /usr/local/python/python-2.3-FC2/share/matplotlib exists and contains the files you referred to above, this is the dir that you would set MATPLOTLIBDATA to point to. If you find the magic combination, please post or for future googlers. Or if you have any suggestions for documentation improvement let me know. JDH |
From: Jeremy S. <js...@as...> - 2004-11-23 15:06:26
|
Hi - I installed matplotlib into an alternative directory (using --home=/usr/local/python/python-2.3-FC2). I edited my .matplotlibrc file to set the data directory to /usr/local/python/python-2.3-FC2/share/matplotlib, but it doesn't seem to work: File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/backends/__init__.py", line 20, in ? globals(),locals(),[backend_name]) File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/backends/backend_gtkagg.py", line 9, in ? from matplotlib.figure import Figure File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/figure.py", line 3, in ? from axes import Axes, Subplot, PolarSubplot, PolarAxes File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/axes.py", line 10, in ? from axis import XAxis, YAxis File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/axis.py", line 20, in ? from font_manager import FontProperties File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/font_manager.py", line 942, in ? fontManager = FontManager() File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/font_manager.py", line 791, in __init__ rebuild() File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/font_manager.py", line 779, in rebuild self.ttfdict = createFontDict(self.ttffiles) File "/usr/local/python/python-2.3-FC2//lib/python/matplotlib/font_manager.py", line 411, in createFontDict verbose.report_error("Could not open font file", fpath) TypeError: report_error() takes exactly 2 arguments (3 given) (BTW the bottom appears to be a bug - report_error should be given 3 arguments) I've also tried specifiying the /usr/local/python/python-2.3-FC2/ and /usr/local/python/python-2.3-FC2/share, but neither work. Is there any reason why the location of the data directory can't be put into matplotlib when it is installed? This would be much more convenient. It would also be nice if matplotlib can find the location of .matplotlibrc if there isn't one in the user's directory. When sing an alternate installation directory, it can't find one at the moment. Jeremy -- Jeremy Sanders <js...@as...> http://www-xray.ast.cam.ac.uk/~jss/ X-Ray Group, Institute of Astronomy, University of Cambridge, UK. Public Key Server PGP Key ID: E1AAE053 |
From: Transier, F. <fre...@sa...> - 2004-11-23 14:40:29
|
Hello, while I was trying to build the matplotlib 0.64 with python 2.4 on my win xp machine a lot of errors occurred. Has anyone managed to install it under these conditions? Or is there any location I can download the binaries for python 2.4 and win xp? Any help would be appreciated. Thanks, Frederik |
From: Todd M. <jm...@st...> - 2004-11-22 19:01:45
|
On Mon, 2004-11-22 at 13:48, John Hunter wrote: > >>>>> "Gary" == Gary <pa...@in...> writes: > > Gary> This application has requested the Runtime to terminate it > Gary> in an unusual way. Please contact the application's support > Gary> team for more information. > > Gary> C:\Python23\Lib\site-packages\matplotlib\examples> > > Hi Gary, the good news is that I could replicate the bug on XP and the > better news is that I could fix it :-) I looked at this but couldn't solve it... way to go John! Cheers, Todd |
From: John H. <jdh...@ac...> - 2004-11-22 18:49:36
|
>>>>> "Gary" == Gary <pa...@in...> writes: Gary> This application has requested the Runtime to terminate it Gary> in an unusual way. Please contact the application's support Gary> team for more information. Gary> C:\Python23\Lib\site-packages\matplotlib\examples> Hi Gary, the good news is that I could replicate the bug on XP and the better news is that I could fix it :-) It looks like a bug in the anim_tk script and not in matplotlib proper. Basically, anim_tk never calls the tk mainloop. Why this works under linux and not windows is not clear to me. The trick is to start the tk mainloop and use the tk after handler to run a command after x milliseconds. So I rewrote the example to do the animation in a loop, and used the after command to start this function after the mainloop is launched. If you have any additional trouble, you may want to try turning off tk.window_focus : False # Maintain shell focus for TkAgg in your rc file. Hope this helps! JDH #!/usr/bin/env python2.3 import matplotlib matplotlib.use('TkAgg') import matplotlib.matlab #import Tkinter as Tk import matplotlib.numerix as numerix fig = matplotlib.matlab.figure(1) ind = numerix.arange(60) x_tmp=[] for i in range(100): x_tmp.append(numerix.sin((ind+i)*numerix.pi/15.0)) X=numerix.array(x_tmp) lines = matplotlib.matlab.plot(X[:,0],'o') manager = matplotlib.matlab.get_current_fig_manager() def updatefig(*args): updatefig.count += 1 lines[0].set_ydata(X[:,updatefig.count%60]) manager.canvas.draw() return updatefig.count updatefig.count=-1 def run(*args): import time tstart = time.time() while 1: cnt = updatefig() if cnt==100: break print 'elapsed', 100.0/(time.time() - tstart) import Tkinter as Tk manager.window.after(10, run) manager.show() Tk.mainloop() |
From: Gary <pa...@in...> - 2004-11-22 18:12:03
|
John Hunter wrote: >>>>>>"Gary" == Gary <pa...@in...> writes: >>>>>> >>>>>> > > Gary> Thanks ... so it's either me or WinXP. I gave it a try on > Gary> my other WinXP machine. Same thing. No dice. > > Gary> Can someone confirm that anim_tk.py runs (or doesn't) on > Gary> WinXP / matplotlib 0.64 ?? > >I can't test this under windows XP right now (I can tomorrow). But >how are you running your script (double clicknig, from a shell, from >within an IDE? > >What does > > c:> python anim_tk.py --verbose-helpful report? > >I searched the matplotlib-users archives at >http://sourceforge.net/mailarchive/forum.php?forum_id=33405 for >PyEval_RestoreThread. This has cropped up a few times before on >windows (including a September post from you also on anim_tk which did >not appear to be resolved). > >My usual first guess when people get this message is that they are >trying to run matplotlib from within a GUI IDE and are getting an IDE >conflict, which is why I asked you to test from the command shell. >Let me know the results of the tests above, because I'd like to track >this one down. > >JDH > > > John, No IDE or double clicks. Straight from the command line. C:\Python23\Lib\site-packages\matplotlib\examples>python anim_tk.py --verbose-helpful matplotlib data path C:\PYTHON23\share\matplotlib loaded rc file C:\PYTHON23\share\matplotlib\.matplotlibrc matplotlib version 0.64 verbose.level helpful interactive is False numerix Numeric 23.0 font search path ['C:\\PYTHON23\\share\\matplotlib'] loaded ttfcache file C:\Documents and Settings\Gary\.ttffont.cache matplotlib data path C:\PYTHON23\share\matplotlib loaded rc file C:\PYTHON23\share\matplotlib\.matplotlibrc matplotlib version 0.64 verbose.level helpful interactive is False backend TkAgg version 8.4 elapsed 6.0779188952 Fatal Python error: PyEval_RestoreThread: NULL tstate This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. C:\Python23\Lib\site-packages\matplotlib\examples> |
From: John H. <jdh...@ac...> - 2004-11-22 00:46:43
|
>>>>> "Gary" == Gary <pa...@in...> writes: Gary> Thanks ... so it's either me or WinXP. I gave it a try on Gary> my other WinXP machine. Same thing. No dice. Gary> Can someone confirm that anim_tk.py runs (or doesn't) on Gary> WinXP / matplotlib 0.64 ?? I can't test this under windows XP right now (I can tomorrow). But how are you running your script (double clicknig, from a shell, from within an IDE? What does c:> python anim_tk.py --verbose-helpful report? I searched the matplotlib-users archives at http://sourceforge.net/mailarchive/forum.php?forum_id=33405 for PyEval_RestoreThread. This has cropped up a few times before on windows (including a September post from you also on anim_tk which did not appear to be resolved). My usual first guess when people get this message is that they are trying to run matplotlib from within a GUI IDE and are getting an IDE conflict, which is why I asked you to test from the command shell. Let me know the results of the tests above, because I'd like to track this one down. JDH |
From: Gary <pa...@in...> - 2004-11-21 19:16:39
|
Steve Chaplin wrote: >On Thu, 2004-11-18 at 18:14 -0500, Gary wrote: > > >>Returning after a time to my animation project. >> >>The first thing i did was to make sure anim_tk.py still runs. It >>didn't. A ghost figure window appears, and there is a long stall, then >>the message: >> >>elapsed 10.7956385487 >>Fatal Python error: PyEval_RestoreThread: NULL tstate >> >>This application has requested the Runtime to terminate it in an unusual >>way. >>Please contact the application's support team for more information. >> >>Is it me, or did something break? >>WinXP, matplotlib 0.64, recently installed by deleting the existing >>matplolib directory and installing using the windows installer. >>Examples installed from the latest zip. >> >>thanks, >>gary >> >> >Its working OK for me. >Fedora 3 Linux, matplotlib 0.64, Python 2.3.4 > >Steve > > > Thanks ... so it's either me or WinXP. I gave it a try on my other WinXP machine. Same thing. No dice. Can someone confirm that anim_tk.py runs (or doesn't) on WinXP / matplotlib 0.64 ?? Thanks, gary |
From: John H. <jdh...@ac...> - 2004-11-19 16:53:47
|
>>>>> "Jochen" == Jochen Voss <vo...@se...> writes: Jochen> has vertical grid lines ONLY on the minor ticks, which Jochen> looks silly. How do I get regularly spaced grid lines Jochen> here? This is a consequence of the fact that the ticker skips minor ticks which coincide with major ticks. I am not sure this is the right behavior, but was implemented to avoid other problems (overlapping gridlines, for example, with anti-aliasing produces undesirable results). All you need to do is turn both major and minor grids on ax.xaxis.grid(True, which="minor") ax.xaxis.grid(True, which="major") Should work.... JDH |
From: Jochen V. <vo...@se...> - 2004-11-19 16:38:49
|
Hello John, thanks a lot for your help. My picture is improving. But one problem is left: the script from matplotlib.matlab import * from matplotlib.ticker import MultipleLocator subplot(211) ax=3Dgca() ax.xaxis.set_minor_locator(MultipleLocator(1)) ax.xaxis.set_major_locator(MultipleLocator(5)) ax.xaxis.grid(True, which=3D"minor") ax.yaxis.grid(False) semilogy([1,2,3,4,5,6,7,8,9,10,11],[1,2,3,4,5,6,7,8,9,10,11],basey=3D2) show() has vertical grid lines ONLY on the minor ticks, which looks silly. How do I get regularly spaced grid lines here? All the best, Jochen --=20 http://seehuhn.de/ |
From: John H. <jdh...@ac...> - 2004-11-19 15:58:43
|
>>>>> "Jochen" == Jochen Voss <vo...@se...> writes: Jochen> Hello, I used matplotlib to create a graphical Jochen> representation of the boot process of my Debian GNU/Linux Jochen> system. The result can be found at Jochen> http://seehuhn.de/comp/bootlog.html Jochen> and especially in the (2400x1500 sized) picture Jochen> http://seehuhn.de/comp/bootlog2.png After looking again at your plot, particularly the rectangle parts with text labels, it occurs to me that it would be nice to have a general purpose class for this (rectangular boxes with text labels). The class matplotlib.tables.Cell strives for this, but is not feature complete. What would be nice would be to be able to specify the location of the text with respect to the box, with horizontal and vertical alignment. This wouldn't be too hard, since text already has these alignment flags with respect to an x,y location ( eg http://matplotlib.sf.net/screenshots.html#align_text ). For full control, one would want to be able to specify the location of x,y with respect to the rectangle (left, center, bottom, right, etc) *and* the alignment of the text with respect to the x,y location, so that one could have -------------------- | | | centered | | | -------------------- -------------------- | | | | to-the-right | | -------------------- -------------------- |top-left-under | | | | | -------------------- top-left-over -------------------- | | | | | | -------------------- and so on..... All the components are in place to make this relatively easy from a layout persepctive. One just has to plug them together and make a nice, intuitive interface. JDH |
From: John H. <jdh...@ac...> - 2004-11-19 15:11:10
|
>>>>> "Jochen" == Jochen Voss <vo...@se...> writes: Jochen> Hello, I used matplotlib to create a graphical Jochen> representation of the boot process of my Debian GNU/Linux Jochen> system. The result can be found at Jochen> http://seehuhn.de/comp/bootlog.html Jochen> and especially in the (2400x1500 sized) picture Jochen> http://seehuhn.de/comp/bootlog2.png Very nice - you manage to pack a lot of information into the graph. Edward Tufte would be proud! It's nice to have folks stress testing matplotlib Jochen> I have a question about matplotlib usage: * I would like the picture to have vertical grid lines at positions 1, 2, 3, 4, ..., On the horizontal x-Axis I would like to see labels at positions 0, 5, 10, 15, ... The best way to do this would be to use minor ticks on 1,2,3,4,etc and major ticks on 0,5,10,15 - the grids occur at the locations of the ticks, and you can customize how you want the ticks labeled. See examples/major_minor_demo1.py and the use of the MultipleLocator. The Multiple locator places ticks at multiples of some base. For you minor ticks you would use MultipleLocator(1) and for your major ticks MultipleLocator(1). The labels for the minor ticks are off by default which is what you want, though you can customize this. See http://matplotlib.sf.net/matplotlib.ticker.html for more info. * not horizonzal grid lines. The ax.xaxis.grid and ax.yaxis.grid functions can be used to selectively turn on and off the grids for the respective axes. The signature is def grid(self, b, which='major'): where b is a boolean. You can use this to control gridding for the major and minor ticks on a per-axis basis. So ax.yaxis.grid(False) selectively turns off the grids for the y axis major tick grid lines. The minor grids are off by default. You can turn them on, eg with ax.xaxis.grid(True, which='minor') * and I would like to get rid of the labels on the y-Axis. Is this possible? ax.set_yticklabels('') See also the functions xticks and yticks in the matlab interface for easy customization of tick locations and labels. Cheers, JDH |
From: Jochen V. <vo...@se...> - 2004-11-19 11:40:30
|
Hello, I used matplotlib to create a graphical representation of the boot process of my Debian GNU/Linux system. The result can be found at http://seehuhn.de/comp/bootlog.html and especially in the (2400x1500 sized) picture http://seehuhn.de/comp/bootlog2.png I have a question about matplotlib usage: I would like the picture to have vertical grid lines at positions 1, 2, 3, 4, ..., not horizonzal grid lines. On the horizontal x-Axis I would like to see labels at positions 0, 5, 10, 15, ... and I would like to get rid of the labels on the y-Axis. Is this possible? How do I do it? All the best, Jochen --=20 http://seehuhn.de/ |
From: Steve C. <ste...@ya...> - 2004-11-19 03:22:19
|
On Thu, 2004-11-18 at 18:14 -0500, Gary wrote: > Returning after a time to my animation project. > > The first thing i did was to make sure anim_tk.py still runs. It > didn't. A ghost figure window appears, and there is a long stall, then > the message: > > elapsed 10.7956385487 > Fatal Python error: PyEval_RestoreThread: NULL tstate > > This application has requested the Runtime to terminate it in an unusual > way. > Please contact the application's support team for more information. > > Is it me, or did something break? > WinXP, matplotlib 0.64, recently installed by deleting the existing > matplolib directory and installing using the windows installer. > Examples installed from the latest zip. > > thanks, > gary Its working OK for me. Fedora 3 Linux, matplotlib 0.64, Python 2.3.4 Steve |
From: Gary <pa...@in...> - 2004-11-18 23:14:48
|
Returning after a time to my animation project. The first thing i did was to make sure anim_tk.py still runs. It didn't. A ghost figure window appears, and there is a long stall, then the message: elapsed 10.7956385487 Fatal Python error: PyEval_RestoreThread: NULL tstate This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information. Is it me, or did something break? WinXP, matplotlib 0.64, recently installed by deleting the existing matplolib directory and installing using the windows installer. Examples installed from the latest zip. thanks, gary |
From: Steve C. <ste...@ya...> - 2004-11-18 10:56:10
|
On Tue, 2004-11-16 at 17:45 +1100, matthew arnison wrote: > Oh dear. I'm going to take another u-turn, and say I hit this > IMAGE_FORMAT attribute glitch again. > > To atone for my reversals, I have isolated a test case, and I attach > sample code. It seems to be triggered by importing matplotlib.matlab in > one module, and importing matplotlib backend stuff directly in another > module. > > Running frog.py gives: > > Traceback (most recent call last): ... > "C:\Python23\lib\site-packages\matplotlib\backends\backend_gtk.py", line > 1423, in __init__ > self.IMAGE_FORMAT = > matplotlib.backends.backend_mod.IMAGE_FORMAT > AttributeError: 'module' object has no attribute 'IMAGE_FORMAT' Its now fixed in CVS. backend_gtk now knows about all image formats and does not need to look at other backends to see what formats they support. Steve |